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 Virat Aggarwal <vi...@softhome.net> on 2001/03/04 21:23:45 UTC

Passing Objects Problem

Hi,

I was trying to run the sample program given on the following link:

http://www-106.ibm.com/developerworks/library/ws-peer3/?dwzone=ws

This has an example of how objects can be passed using SOAP. I have used the exact same setup as mentioned on the link. When I try the code under Passing Objects section, I get the following output:

HTTP/1.0 400 Bad Request
Content-Type: text/xml; charset=UTF-8
Content-Length: 520
Set-Cookie2: JSESSIONID=56g8qeg9h1;Version=1;Discard;Path="/soap"
Set-Cookie: JSESSIONID=56g8qeg9h1;Path=/soap
Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)

<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>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>No Deserializer found to deserialize a 'urn:my_encoding:Invoice' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Could anybody suggest why this is happening?
Any help would be appreciated!

Thanks