axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Tam <d...@consumercontact.com>
Subject Re: serializing the Map datatype
Date Thu, 03 Nov 2005 14:33:45 GMT
Hi,

I realize this was quite the newb question, but could please someone 
point me in the right direction?  WSDL2Java is returning a MapEntry[] 
and making its own MapEntry stuff, but I really want it to use 
java.util.Map.

Thanks,

Don Tam wrote:

> Hi,
>
> I had deployed some web services using JWSDP about a year ago, and now 
> I'm trying to get an Axis client to work with it.  The problem I'm 
> having is that I'm using WSDL2Java and I'm not quite sure how to tell 
> it that I want things that return "map" to serialize into 
> java.util.Map.  What are the steps I need to take? Is there an example?
>
> Here is a snippet of the WSDL that was generated by JWSDP (it's 
> deserialized java.util.Map like this):
>
> <complexType name="map">
> -
>    <complexContent>
> -
>    <restriction base="soap11-enc:Array">
> <attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:mapEntry[]"/>
> </restriction>
> </complexContent>
> </complexType>
> -
>    <complexType name="mapEntry">
> -
>    <sequence>
> <element name="key" type="anyType"/>
> <element name="value" type="anyType"/>
> </sequence>
> </complexType>
>
> Thanks,
>

-- 
Don Tam
Manager, Software Development
(416)493-6111x143
dtam@consumercontact.com


Mime
View raw message