You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by da...@nbnet.nb.ca on 2003/03/07 21:19:00 UTC

Apache SOAP 2.2 client to .NET web service.

Hello,

I know that some folks have had success with an Apache Soap 2.2 client calling cand .NET web
service.
The following SOAP request worked beautifully with MSSOAP 2.0 sp 2.

<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:PurchaseProduct
xmlns:ns1="http://tempuri.org/message/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<sXML xsi:type="xsd:string">
a bunch of stuff in here
</sXML>
</ns1:PurchaseProduct>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Any ideas why the we now get the following response from the the .NET service ...
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Server was unable to read request. --> There is an error in XML document (4, 2). --> &lt;PurchaseProduct xmlns='http://tempuri.org/message/'>; was not expected.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>

Thanks,
Dave