Ben NuSOAP lib üzerinde bir php müşteri tabanına ihtiyacımız var. etkin Haeder auth ile bir Asmx servis yanıtı almak için:
Bu (SoapUI kullanarak) İsteği:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:res="namespaceurl">
<soap:Header>
<res:AuthHeader>
<!--Optional:-->
<res:UserName>myuser</res:UserName>
<!--Optional:-->
<res:Password>mypass</res:Password>
</res:AuthHeader>
</soap:Header>
<soap:Body>
<res:LoanStatus>
<res:iAccountNbr>?</res:iAccountNbr>
<res:iResortNbr>?</res:iResortNbr>
<!--Optional:-->
<res:strXRef></res:strXRef>
</res:LoanStatus>
</soap:Body>
</soap:Envelope>
Here es the Response (soapUI):<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:res="namespaceurl">
<soap:Header>
<res:AuthHeader>
<!--Optional:-->
<res:UserName>myuser</res:UserName>
<!--Optional:-->
<res:Password>mypass</res:Password>
</res:AuthHeader>
</soap:Header>
<soap:Body>
<res:LoanStatus>
<res:iAccountNbr>?</res:iAccountNbr>
<res:iResortNbr>?</res:iResortNbr>
<!--Optional:-->
<res:strXRef></res:strXRef>
</res:LoanStatus>
</soap:Body>
</soap:Envelope>