Hi,

I was looking at the DataDeser in examples/encoding and I'm still at a loss. If someone has written a deserializer for a map/hashmap (especially for nested maps), could you please help?

Thanks,

Don Tam wrote:

Hi,

Thank you for the response. Do you have a complete example of how to do this?

Thanks,

Anne Thomas Manes wrote:

You will need to write a custom deserializer.

On 11/3/05, *Don Tam* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    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,
    >


Reply via email to