[
https://issues.apache.org/jira/browse/CXF-6148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14239823#comment-14239823
]
ASF GitHub Bot commented on CXF-6148:
-
GitHub user DemonShi opened a pull request:
https://github.com/apache/cxf/pull/37
(CXF-6148) Added a basic support of xsd:choice elements in JS generator.
This fix adds a basic support for xsd:choice elements.
There are several limitations:
* JS does not check xsd:choice restrictions (it is currently possible to
set several xsd:choice members at the same time, but this should eventually
result in SOAP BE error)
* xsd:choice with maxOccurs > 1 still not support
* xsd:any inside xsd:choice is not supported as well
Covered it with tests and did small improvement to the tests.
Also added log message when not supported exception is raisen, since it was
not enabled previously.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/DemonShi/cxf cxf-6148
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cxf/pull/37.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #37
commit 0ff70b6bc99733271ba556d53515d176e08a13bd
Author: Andrii Nikitiuk
Date: 2014-12-09T18:38:32Z
(CXF-6148) Added support for basic xsd:choice elements for JS generator.
Covered with tests and improved tests. Added log message when not supported
exception is raisen.
> Adding support for xsd:choice in Javascript generator
> -
>
> Key: CXF-6148
> URL: https://issues.apache.org/jira/browse/CXF-6148
> Project: CXF
> Issue Type: Improvement
> Components: JavaScript Client
>Affects Versions: 3.0.2
>Reporter: Andrii Nikitiuk
>Priority: Minor
> Labels: javascript, wsdl2js, xsd, xsd:choice
>
> Currently xsd:choice construct is not supported in javascript generator. We
> should add such support.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)