You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "jmi (JIRA)" <ji...@apache.org> on 2008/04/02 22:57:32 UTC

[jira] Reopened: (CXF-918) java code from wsdl2java for wrapped style if request and response have elements with the same names and different datatypes

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

jmi reopened CXF-918:
---------------------


after fix it's not usable anymore.

check next attachment.
CXF-2.0.1 was able to generate code from it.
Generated code was invalid if     <enableWrapperStyle>false</enableWrapperStyle> wasn't used.
But generated code was valid if it was used.

With newer versions nothing can be generated.
But it should be possible when   <enableWrapperStyle>false</enableWrapperStyle>  is used.
Only if it's not used current error message should appear. 

Current error is: 
WSDLToJava Error: Element {http://customer.crm.tmobile.at/datatypes/manage/getcustomers}data has Having the same name wi
th different types[{http://customer.crm.tmobile.at/datatypes/manage/getcustomers}getCustomersRequestData -- {http://cust
omer.crm.tmobile.at/datatypes/manage/getcustomers}getCustomersResponseData],  In wrapper style, there is a collision as
per the spec.

> java code from wsdl2java for wrapped style if request and response have elements with the same names and different datatypes
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-918
>                 URL: https://issues.apache.org/jira/browse/CXF-918
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.1, 2.1
>         Environment: java 1.5.0_09
>            Reporter: jmi
>            Assignee: maomaode
>             Fix For: 2.0.2
>
>         Attachments: bug.wsdl
>
>
> wsdl2java renegares incorrect java code for some wsdls:
> wsdl uses "wrapped style" - request and response messages for operation, both have only one message-part. Each element referenced from message-part has different compex type, where both have multiple elements. 
> Problem is if there are two elements, one in request, one in response datatype, where both have the same name, but they have different datatype. In such situation a Holder is generated, which holds dataype from response. Request parameter is lost.
> maybe reason is common with bug 907

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.