Re: SOAP Server Response

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hey Andy,
it looks fine to me, those are just extra namespaces and should be there. Have you tried testing agaist the ASP.net webservice to see if your server response works correctly?




Andy Soh wrote:
Currently i am creating a server using NUSOAP and the other requesting party is using ASP.NET. The response they request from my service is as follows:

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
 <SOAP-ENV:Body>
                        <result>1</result>
  </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>


However, What i am able to produce now is just as stated below:

<?xml version="1.0" encoding="ISO-8859-1"?>
<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>
                        <result>1</result>
  </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>


as you can see, the response i am giving is the same as what they request except for extra fields such as the xml version declaration and this line in the 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/";' . According to the NUSOAP author, it is not possible to remove this lines using NUSOAP. My question is, is these additional lines absoluately needed to be taken off for the ASP.NET client recognise my response? Is there any solution to this problem?

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux