cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Muccione (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-4911) wsdl2js generated code does not parse type when itterating through array (maxOccur) arrays
Date Thu, 21 Mar 2013 15:07:17 GMT

     [ https://issues.apache.org/jira/browse/CXF-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stephen Muccione updated CXF-4911:
----------------------------------

    Labels: javascript wsdl2js  (was: )
    
> wsdl2js generated code does not parse type when itterating through array (maxOccur) arrays
> ------------------------------------------------------------------------------------------
>
>                 Key: CXF-4911
>                 URL: https://issues.apache.org/jira/browse/CXF-4911
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.7.3
>         Environment: cxf 2.73, windows 7, custom soap server/wsdl generator (WS-I compliant)
>            Reporter: Stephen Muccione
>              Labels: javascript, wsdl2js
>
> rpc/literal WSDL
> section of WSDL:
> <xsd:complexType name="tdGL0Data">
> <xsd:sequence>
> <xsd:element name="syncIsrCount" minOccurs="1" maxOccurs="1" type="xsd:unsignedInt"/>
> <xsd:element name="GroupSize" minOccurs="1" maxOccurs="1" type="xsd:unsignedInt"/>
> <xsd:element name="LNdata" minOccurs="512" maxOccurs="512" type="xsd:short"/>
> </xsd:sequence>
> </xsd:complexType>
> The generated deserializer for the LNdata element is:
>     cxfjsutils.trace('processing LNdata');
>     if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'LNdata'))
{
>      item = [];
>      do  {
>       var arrayItem = null;
>       var value = null;
>       if (!cxfjsutils.isElementNil(curElement)) {
>        value = cxfjsutils.getNodeText(curElement);
>        arrayItem = value;
>       }
>       item.push(arrayItem);
>       curElement = cxfjsutils.getNextElementSibling(curElement);
>      }
>        while(curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'LNdata'));
>      newobject.setLNdata(item);
>      var item = null;
>     }
>     return
> }
> the lines:
>        value = cxfjsutils.getNodeText(curElement);
>        arrayItem = value;
> simply extract the data from the dom and place it directly in into the output array.
> The element was declared as a short, however the parseInt() call was not present in the
generated code.
> note:  there is no issue with the schema... xsd:unsignedInt was handled in the above
2 cases without issue

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message