[
https://issues.apache.org/jira/browse/CXF-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485330
]
Chris Moesel commented on CXF-502:
----------------------------------
Dan Kulp had an interesting and relevant response on the user list:
---
Honestly, I'm not sure if the spec would allow us to change this. The
JAX-WS spec specifically says:
"The wrapper elements only contain child elements, they must not contain
other structures such as wildcards (element or attribute), xsd:choice,
substitution groups (element references are not per-mitted) or
attributes; furthermore, they must not be nillable."
I'm not sure if an "xsd:any" would be considered a "chile element".
---
> xsd:any in wrapped type causes wsdl2java to generate as bare.
> -------------------------------------------------------------
>
> Key: CXF-502
> URL: https://issues.apache.org/jira/browse/CXF-502
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.0-RC
> Environment: Using 2.0 RC-Snapshot from Maven Repo.
> Reporter: Chris Moesel
> Attachments: pizza.wsdl, pizza_service_cxf_wrapped_any_bug.zip
>
>
> CXF 2.0 RC SNAPSHOT: If a doc/literal wrapped WSDL uses xsd:any in the
> wrapped request or response type, then the WSDL2Java tool will generate the
> interface with style SOAPBinding.ParameterStyle.BARE.
> I will attach a maven project that demonstrates this, as well as a separate
> WSDL document.
> To see this in action, run: "mvn generate-sources" on the attached example
> project.
> The WSDL can be found at src/main/resources/pizza.wsdl.
> The incorrectly generated interface can be found (after executing maven) at
> target/generated/src/main/java/com/mypizzaco/service/PizzaPortType.java.
> If you comment out the xsd:any element in the WSDL and regenerate the source
> code, you will see it correctly generated as WRAPPED.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.