cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jmi (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CXF-1229) Check for element name clash in request and response messages ignores setting of enableWrapperStyle
Date Wed, 02 Apr 2008 20:53:33 GMT

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

jmi edited comment on CXF-1229 at 4/2/08 1:53 PM:
--------------------------------------------------

I did nearly minimalistic version of problem.See next attachment.

When using jaxws-ri-2.1.3-20071218 
wsimport.bat -b C:\test\mybinding.xml C:\test\test.wsdl
it works nicely.

Of course when i try only 
wsimport.bat C:\test\test.wsdl
i have error
[ERROR] Failed to generate Java signature: duplicate parameter name "data". Try one of these
        1. Use JAXWS binding customization to rename the wsdl:part "parameters"
        2. Run wsimport with -extension switch.
        3. This is wrapper style operation, to resolve parameter name conflict, you can also
try disabling wrapper style
 by using <jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle> wsdl customization.
  line 29 of file:/C:/test/test.wsdl
[ERROR] Failed to generate Java signature: duplicate parameter name "data". Try one of these
        1. Use JAXWS binding customization to rename the wsdl:part "parameters"
        2. Run wsimport with -extension switch.
        3. This is wrapper style operation, to resolve parameter name conflict, you can also
try disabling wrapper style
 by using <jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle> wsdl customization.
  line 26 of file:/C:/test/test.wsdl


but i want to use first style .. wrapper=false


Problem is that with CFX nothing works... if u use
wsdl2java.bat -b C:\test\mybinding.xml C:\test\test.wsdl
or 
wsdl2java.bat C:\test\test.wsdl
i have this error in both cases:

WSDLToJava Error: Element {http://mytest/datatypes/manage/getcustomers}data has Having the
same name with different type
s[{http://mytest/datatypes/manage/getcustomers}getCustomersRequestData -- {http://mytest/datatypes/manage/getcustomers}g
etCustomersResponseData],  In wrapper style, there is a collision as per the spec.


probably this stopped work with "fix" of CXF-918.
With cxf-2.0.1 it generates correct code when using binding file ... and incorrect code without
binding file which includes wrapped setting ....

      was (Author: jmi):
    I did nearly minimalistic version of problem.See next attachment.

When using jaxws-ri-2.1.3-20071218 
wsimport.bat -b C:\test\mybinding.xml C:\test\test.wsdl
it works nicely.

Of course when i try only 
wsimport.bat C:\test\test.wsdl
i have error
[ERROR] Failed to generate Java signature: duplicate parameter name "data". Try one of these
        1. Use JAXWS binding customization to rename the wsdl:part "parameters"
        2. Run wsimport with -extension switch.
        3. This is wrapper style operation, to resolve parameter name conflict, you can also
try disabling wrapper style
 by using <jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle> wsdl customization.
  line 29 of file:/C:/test/test.wsdl
[ERROR] Failed to generate Java signature: duplicate parameter name "data". Try one of these
        1. Use JAXWS binding customization to rename the wsdl:part "parameters"
        2. Run wsimport with -extension switch.
        3. This is wrapper style operation, to resolve parameter name conflict, you can also
try disabling wrapper style
 by using <jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle> wsdl customization.
  line 26 of file:/C:/test/test.wsdl


but i want to use first style .. wrapper=false


Problem is that with CFX nothing works... if u use
wsdl2java.bat -b C:\test\mybinding.xml C:\test\test.wsdl
or 
wsdl2java.bat C:\test\test.wsdl
i have this error in both cases:

WSDLToJava Error: Element {http://mytest/datatypes/manage/getcustomers}data has Having the
same name with different type
s[{http://mytest/datatypes/manage/getcustomers}getCustomersRequestData -- {http://mytest/datatypes/manage/getcustomers}g
etCustomersResponseData],  In wrapper style, there is a collision as per the spec.


maybe this stopped work with "fix" of CXF-918 
  
> Check for element name clash in request and response messages ignores setting of enableWrapperStyle
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1229
>                 URL: https://issues.apache.org/jira/browse/CXF-1229
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.2
>            Reporter: Christian Pfeifhofer
>             Fix For: 2.1
>
>         Attachments: test.zip
>
>
> One way to get around the method signature problems with a request and a response message
having an element with the same name but with different datatypes is to disable wrapper style.
wsdl2java (of CXF 2.0.2-incubator) ignores the setting of enableWrapperStyle and always fails
to generate code in that case, reporting an error:
> WSDLToJava Error : Element
> {http://order.rbp.tmobile.at/services/rbpCheckDevices/}data has Having the
> same name with different
> types[{http://order.rbp.tmobile.at/datatypes}RbpCheckDevicesRequestDataType
> -- {http://order.rbp.tmobile.at/datatypes}RbpCheckDevicesResponseDataType],
> In wrapper style, there is a collision as per the spec.
> wsdl2java should check for enableWrapperStyle to be true (global and for a specific operation)
before checking for name clashes in request and response messages and skip the check otherwise.

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


Mime
View raw message