RE: ksoap vs Axis 1.1 client
Dovlecel Alexandru Ovidiu <[email protected]> Wed, 16 Jun 2004 10:26:19 +0300
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <21115DCA7CC1D51189F100E0181E406501142B85@BAVC001A> |
Could it be because, as you can see, Axis uses a different XMLSchema (1999). I think (but I am not shure about this) that you can configure ksoap to use the 1999 XMLSchema. But it seems weird that axis does not allow you to send the request. As far as I remember, the request element was mandatory. But this was an year or so ago... so maybe AXIS has implemented a newer SOAP version that is not compatible with the one used by kSOAP. Mere speculations... sorry that I can't help you. Hope you will find the solution and post it. Cheers, Alex > -----Original Message----- > From: Makesh Rao [mailto:[email protected]] > Sent: Tuesday, June 15, 2004 10:10 PM > To: [email protected] > Subject: Ksoap: ksoap vs Axis 1.1 client > > > Hi > > I have a server implemented in Axis 1.1 and running in > Tomcat. Axis also > generated the client stubs. I am also implementing an applet > that need to > connect to the server and I was planning to use ksoap. > > There is a distinct difference in the SOAP messages that the two > implementations put out. > > With Axis client: > > <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"><TestMessage> > Hello World > </TestMessage> > </prepareConfigSet> > </v:Body> > </v:Envelope> > > > With 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://tools.cisco.com/ict/types" id="o0" > SOAP-ENC:root="1"> > <request xmlns="" xsi:type="xsd:string"><TestMessage> > Hello World > </TestMessage> > </request> > </prepareConfigSet> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > The extra element <request> that ksoap writes, causes the > server to throw a > SAX Exception during the parsing. Any pointers on which one > is the correct > implentation ? > > I then modified the write() method in the SoapWriter to not > write the extra > element and the server accepted the message, but while > parsing the response, > ksoap throws a ClassCastException in the getResult() method > in SoapEnvelope > in the line : > > KvmSerializable ks = (KvmSerializable) body; > > Any help is really appreciated.. > > Thanks > Makesh > > _________________________________________________________________ > Watch the online reality show Mixed Messages with a friend > and enter to win > a trip to NY > http://www.msnmessenger-download.click-url.com/go/onm00200497a ve/direct/01/ _______________________________________________ Ksoap mailing list [email protected] http://www.enhydra.org/mailman/listinfo.cgi/ksoap