Я конвертирую .Net webservice в php nusoap webservice для моего приложения для Android, но ответы обоих веб-сервисов не совсем совпадают.
В Soap Ui я протестировал и этот ответ я получил в
.Net ниже
Request:-
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
<soap:Header/>
<soap:Body>
<tem:Userlogin>
<!--Optional:-->
<tem:Username>?</tem:Username>
<!--Optional:-->
<tem:Password>?</tem:Password>
<!--Optional:-->
<tem:Role>?</tem:Role>
</tem:Userlogin>
</soap:Body>
</soap:Envelope>
Result:-
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<UserloginResponse xmlns="http://tempuri.org/">
<UserloginResult>{"Response":[{"username":"COC61","name":"sum1love","mobile":"8808879249","email":"","gender":"0","dateofbirth":null,"address":null,"role":"U","sponsorid":"sum1145961","playstatus":"True","Totalcontest":"0","Imageurl":"","Totalwallet":"433","Totallife":"4"}]}</UserloginResult>
</UserloginResponse>
</soap:Body>
</soap:Envelope>
``
В ответе PHP
Request:
<<code>soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> 8808879249 123456?
``
Result:
``
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:UserloginResponse xmlns:ns1="http://tempuri.org/">
<UserloginResult xsi:type="xsd:string">{"Response":[{"username":"COC61","name":"sum1love","mobile":"8808879249","email":"","gender":"Male","dateofbirth":null,"address":"","role":"U","sponsorid":"sum1145961","playstatus":"1","Totalcontest":1,"Imageurl":"","Totalwallet":1,"Totallife":1}]}</UserloginResult>
</ns1:UserloginResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
``
в php имеет дополнительный префикс ns1 и еще несколько дополнительных вещей получаютсяКак я могу добиться так же, как. Net ответа.