Re: Types map to SoapPrimitive, not Java type

Michael Yuan <[email protected]> Tue, 3 Dec 2002 11:56:47 -0600 (CST)
Newsgroups gmane.comp.java.enhydra.ksoap
Message-ID <[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
>