You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Dushyant Nakrani (JIRA)" <ax...@ws.apache.org> on 2008/03/17 11:25:25 UTC

[jira] Commented: (AXIS-2730) Vector inside Vector or HashMap inside Vector not working with document/literal wrapped style wsdl

    [ 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