Stefan,
I've attached request messages produced from kSOAP as well as from the
sample Apache SOAP app, and the kSOAP code I used. (I'm in the process of
putting together Apache-style Call and Response classes for use with kSOAP,
which I'll finish debugging and pass on if you're interested).
Thanks,
Daryl.
----- Original Message -----
From: "Stefan Haustein" <stefan.haustein@trantor.de>
To: <ksoap@enhydra.org>
Cc: <daryl@usefultools.com>
Sent: Tuesday, June 19, 2001 10:39 PM
Subject: Re: Ksoap: Fault using kSOAP with Apache SOAP
> >Has anyone tried using kSOAP to call the address book service that comes
> with Apache SOAP? I get the following fault:
> >
> ><faultcode>SOAP-ENV:Server</faultcode>
> ><faultstring>java.lang.IllegalArgumentException: No Serializer found to
> serialize a 'org.w3c.dom.Element' using encoding style
> '>http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
> ><faultactor>/soap/servlet/rpcrouter</faultactor>
>
> Can you send some more information, perhaps post a sample message
> expected by apache and the message you generated using ksoap, and
> also the code fragment for generating the message?
>
> Best regards,
> Stefan
>
> _______________________________________________
> Ksoap mailing list
> Ksoap@enhydra.org
> http://www.enhydra.org/mailman/listinfo.cgi/ksoap
>
POST /soap/servlet/rpcrouter HTTP/1.1
SOAPAction:
Host: localhost:5555
Connection: close
Content-Type: text/xml
Content-Length: 430
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<getAllListings xmlns="urn:AddressFetcher" id="o0" root="1" />
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: 419
SOAPAction: ""
<?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:getAllListings xmlns:ns1="urn:AddressFetcher" SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml">
</ns1:getAllListings>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Call.java
Sample client.java
|