cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6163) WSDL Javascript generator for xsd:any elements is not correct when any is optional
Date Fri, 19 Dec 2014 18:34:13 GMT

    [ https://issues.apache.org/jira/browse/CXF-6163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14253745#comment-14253745
] 

ASF GitHub Bot commented on CXF-6163:
-------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/cxf/pull/46


> WSDL Javascript generator for xsd:any elements is not correct when any is optional
> ----------------------------------------------------------------------------------
>
>                 Key: CXF-6163
>                 URL: https://issues.apache.org/jira/browse/CXF-6163
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 3.0.2
>            Reporter: Andrii Nikitiuk
>            Priority: Minor
>              Labels: javascript, optional, wsdl2js, xsd, xsd:any
>
> Here is an example of WSDL complexType with any element:
> {code}
> <complexType name="SomeType">
> <sequence>
> <element name="arg1" type="xsd:int"/>
> <any maxOccurs="unbounded" minOccurs="0"/>
> </sequence>
> </complexType>
> {code}
> Here are some problems:
> * In generated Javascript this xsd:any element is marked as "required", while we have
minOccurs="0"
> * Deserializer of this xsd:any element goes into infinite loop when there is nothing
that can be threaten as xsd:any
> * Serializer also thinks of this xsd:any as required element and throws exception if
it is null
> Expected behavior:
> * xsd:any should be threaten as optional element
> * parsing of XML with xsd:any element in WSDL should not hang



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message