Types map to SoapPrimitive, not Java type
Steve Daly <[email protected]> Tue, 3 Dec 2002 09:51:42 -0800
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[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