cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Moesel (JIRA)" <>
Subject [jira] Commented: (CXF-502) xsd:any in wrapped type causes wsdl2java to generate as bare.
Date Thu, 29 Mar 2007 20:07:25 GMT


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:
>             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,
> 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/
> 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.

View raw message