Hi 

I have a doc-lit webservice using a RPC provider
implemented using Axis 1.1 and running on Tomcat. I
used a wsdl to generate the server bindings and also
generated the client stubs. I have an applet as a
client and I'm using ksoap to connect. 

I see a difference in the SOAP messages that the two
put out. 

Using Axis Client: 

SOAPEnvelope = 
<v:Envelope
xmlns:i="http://www.w3.org/1999/XMLSchema-instance"; 
xmlns:d="http://www.w3.org/1999/XMLSchema"; 
xmlns:c="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:v="http://schemas.xmlsoap.org/soap/envelope/";> 
<v:Header/> 
<v:Body> 
<prepareConfigSet
i:type="d:string">&lt;TestMessage&gt; 
Hello World 
&lt;/TestMessage&gt; 
</prepareConfigSet> 
</v:Body> 
</v:Envelope> 

Using ksoap: 

<SOAP-ENV:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";

xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>

<SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>

<prepareConfigSet xmlns="http://ws-dev/ict/types";
id="o0" SOAP-ENC:root="1"> 
<request xmlns=""
xsi:type="xsd:string">&lt;TestMessage&gt; 
Hello World 
&lt;/TestMessage&gt; 
</request> 
</prepareConfigSet> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

Notice the extra element <request > that ksoap writes
out in the BODY. The server chokes on this with a SAX
Exception, saying something like it found a child when
none was expected. 

The same ksoap message works if I have a .jws
implementation on the server. 

I then commented out the code in ksoap that writes out
the extra element. This worked with the wsdd
implementation, but the the .jws now fails. 

Is this something that I can configure ? Or is there
something that I'm missing in the wsdd files that will
let axis only pick the correct portions from the SOAP
message ? 

Any help is appreciated.. 

Thanks 
Makesh 
 



                
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

Reply via email to