RE: Ksoap digest, Vol 1 #235 - 2 msgs
Steve Daly <[email protected]> Wed, 4 Dec 2002 12:22:38 -0800
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
Here is a soap trace of the response taken while sending from XMLSpy soap debugger, not ksoap. Let me know if this must be requested by ksoap. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="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/"> <SOAPSDK4:setDeviceInfoResponse xmlns:SOAPSDK4="http://tempuri.org/iAM_Registration/message/"> <Result href="#id1"/> <Size>65</Size> <docVersion>1.0</docVersion> <RegInfoDoc>RIM.5810.11223344</RegInfoDoc> </SOAPSDK4:setDeviceInfoResponse> <SOAPSDK5:RegInfoResult xmlns:SOAPSDK5="http://tempuri.org/iAM_Registration/type/" id="id1" SOAPSDK3:root="0"> <resultCode>4</resultCode> <description>Missing required Key value</description> <encryption/> <serverVersion SOAPSDK2:nil="true"/> <regURL SOAPSDK2:nil="true"/> </SOAPSDK5:RegInfoResult> </SOAP-ENV:Body> </SOAP-ENV:Envelope> --__--__-- Message: 1 From: Steve Daly <[email protected]> To: "'[email protected]'" <[email protected]> Date: Tue, 3 Dec 2002 09:51:42 -0800 Subject: Ksoap: Types map to SoapPrimitive, not Java type Reply-To: [email protected] The complextype below, taken from a .wsdl file produced by MSSOAP toolkit 3.0, is a response structure. In my client ksoap app, I use getProperty on the returned SoapObject and find that the elements are SoapPrimitive and I can't cast to the related java types Short, String... I have tried using Classmap(true) to cover any possible version mismatch though I believe the client and server are at the same version. Also, I'm looking to better understand the use of Classmap - something more than the api javadoc. Also, I'm not sure how to handle the base64Binary element. <complexType name ='RegInfoResult'> <sequence> <element name='resultCode' type='short'/> <element name='description' type='string'/> <element name='encryption' type='base64Binary'/> <element name='serverVersion' type='string'/> <element name='regURL' type='string'/> </sequence> </complexType> Thanks for any help steve --__--__-- Message: 2 Date: Tue, 3 Dec 2002 11:56:47 -0600 (CST) From: Michael Yuan <[email protected]> To: "'[email protected]'" <[email protected]> Subject: Re: Ksoap: Types map to SoapPrimitive, not Java type Reply-To: [email protected] Can you show us the actual XML stream received by your parser. Microsoft seems to have some non-standard namespace (or omit namespace) problems. In the meanwhile, how use ClassMap in kSOAP v1.2 is discuss in my JavaWorld article: http://www.javaworld.com/javaworld/jw-08-2002/jw-0823-wireless.html cheers Michael ---------------------------------------------------------------------------- Read Michael Yuan's technology articles http://www.enterprisej2me.com/articles.php Dr. Dobbs Journal, JavaWorld, IBM developerWorks and more ... ---------------------------------------------------------------------------- On Tue, 3 Dec 2002, Steve Daly wrote: > The complextype below, taken from a .wsdl file produced by MSSOAP toolkit > 3.0, is a response structure. In my client ksoap app, I use getProperty on > the returned SoapObject and find that the elements are SoapPrimitive and I > can't cast to the related java types Short, String... I have tried using > Classmap(true) to cover any possible version mismatch though I believe the > client and server are at the same version. > > Also, I'm looking to better understand the use of Classmap - something more > than the api javadoc. > > Also, I'm not sure how to handle the base64Binary element. > > > <complexType name ='RegInfoResult'> > <sequence> > <element name='resultCode' type='short'/> > <element name='description' type='string'/> > <element name='encryption' type='base64Binary'/> > <element name='serverVersion' type='string'/> > <element name='regURL' type='string'/> > </sequence> > </complexType> > > Thanks for any help > steve > _______________________________________________ > Ksoap mailing list > [email protected] > http://www.enhydra.org/mailman/listinfo.cgi/ksoap > --__--__-- _______________________________________________ Ksoap mailing list [email protected] http://www.enhydra.org/mailman/listinfo.cgi/ksoap End of Ksoap Digest