axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dushyant Nakrani (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-2730) Vector inside Vector or HashMap inside Vector not working with document/literal wrapped style wsdl
Date Mon, 17 Mar 2008 10:25:25 GMT

    [ https://issues.apache.org/jira/browse/AXIS-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579379#action_12579379
] 

Dushyant Nakrani commented on AXIS-2730:
----------------------------------------

I was able to pass Complex types in a HashMap. When I compare MapSerializer.java and VectorSerializer.java,
I found that *MapSerializer.java* was serializing data inside *serialize()* method with 

// Since the Key and Value can be any type, send type info
            context.serialize(QNAME_KEY,   null, key, null, null, Boolean.TRUE);
            context.serialize(QNAME_VALUE, null, val, null, null, Boolean.TRUE);

while, *VectorSerializer.java* was serializing data with 
            context.serialize(Constants.QNAME_LITERAL_ITEM,  null, item);

That means it will not pass type info with Vector child elements and so will not get deserialized
by VectorDeserializer.java as it expects type info to deserialize child elements if any.

Doesn't it looks like a bug in VectorSerializer.java?

After changing the above line in VectorSerializer.java to 
context.serialize(Constants.QNAME_LITERAL_ITEM,  null, item, null, null, Boolean.TRUE);

it worked fine and I was able to pass any complex types in Vector.



> Vector inside Vector or HashMap inside Vector not working with document/literal wrapped
style wsdl
> --------------------------------------------------------------------------------------------------
>
>                 Key: AXIS-2730
>                 URL: https://issues.apache.org/jira/browse/AXIS-2730
>             Project: Axis
>          Issue Type: Bug
>          Components: Serialization/Deserialization
>    Affects Versions: 1.4
>            Reporter: Dushyant Nakrani
>            Priority: Blocker
>
> Complex types like Vector and HashMap are not getting serialized if they are child element
of a Vector and only if I use wrapped style wsdl. 
> From a java client, I am calling a Java web service which accepts Vector inside Vector.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message