SOAP Server Response
| From: | Andy Soh | Date: | Sun, 04 Sep 2005 16:05:32 +0000 |
| Subject: | SOAP Server Response | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1972@lists.php.net to get a copy of this message | ||
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?