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-918) java code from wsdl2java for wrapped style if request and response have elements with the same names and different datatypes
Date Fri, 17 Aug 2007 15:04:30 GMT

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

jmi edited comment on CXF-918 at 8/17/07 8:03 AM:
--------------------------------------------------

This code was generated.

    @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
    );

      was (Author: jmi):
    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
    );
  
> 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
>         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.


Mime
View raw message