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:17:24 UTC

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

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


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

Posted by "Dushyant Nakrani (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dushyant Nakrani updated AXIS-2730:
-----------------------------------

    Description: 
Complex types like Vector and HashMap are not getting serialized if they are child elements 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. 

  was:
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. 


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


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

Posted by "Dushyant Nakrani (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579379#action_12579379 ] 

dushyant.nakrani edited comment on AXIS-2730 at 3/17/08 3:26 AM:
-----------------------------------------------------------------

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 look 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.



      was (Author: dushyant.nakrani):
    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


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

Posted by "Dushyant Nakrani (JIRA)" <ax...@ws.apache.org>.
    [ 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