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 2007/08/17 16:56:30 UTC

[jira] Updated: (CXF-918) wsdl2java renegares incorrect java code if wsdl uses wrapped style and both complex datatypes for request + response elements contains neste

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

jmi updated CXF-918:
--------------------

    Attachment: bug.wsdl

This code was generated.

I don't understand several more points:
why did it generate Holder for myString2?

    @ResponseWrapper(targetNamespace = "http://bugs.cxf/services/bug1", className = "cxf.bugs.services.bug1.ResponseDataType", localName = "myBug1Response")
    @RequestWrapper(targetNamespace = "http://bugs.cxf/services/bug1", className = "cxf.bugs.services.bug1.RequestDataType", localName = "myBug1")
    @WebMethod
    public void myBug1(
        @WebParam(targetNamespace = "http://bugs.cxf/services/bug1", name = "myString1")
        java.lang.String myString1,
        @WebParam(targetNamespace = "http://bugs.cxf/services/bug1", mode = Mode.INOUT, name = "theSameNameFieldTheSameDataType")
        javax.xml.ws.Holder<java.lang.String> theSameNameFieldTheSameDataType,
        @WebParam(targetNamespace = "http://bugs.cxf/services/bug1", mode = Mode.INOUT, name = "theSameNameFieldDifferentDataType")
        javax.xml.ws.Holder<java.lang.Integer> theSameNameFieldDifferentDataType,
        @WebParam(targetNamespace = "http://bugs.cxf/services/bug1", mode = Mode.OUT, name = "myString2")
        javax.xml.ws.Holder<java.lang.String> myString2
    );

> wsdl2java renegares incorrect java code if wsdl uses wrapped style and both complex datatypes for request + response elements contains neste
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 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
>         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.