Re: SOAP Server Response
| From: | Jim Plush | Date: | Fri, 09 Sep 2005 20:50:42 +0000 |
| Subject: | Re: SOAP Server Response | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1984@lists.php.net to get a copy of this message | ||
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?