cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jmi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-918) java code from wsdl2java for wrapped style if request and response have elements with the same names and different datatypes
Date Mon, 20 Aug 2007 13:31:33 GMT

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

jmi commented on CXF-918:
-------------------------

Instead of incorrect (because dataytype of  "theSameNameFieldDifferentDataType" element in
wsdl is different for request and for response complex type, and that's why it cannot by hold
by one common Holder)
        @WebParam(targetNamespace = "http://bugs.cxf/services/bug1", mode = Mode.INOUT, name
= "theSameNameFieldDifferentDataType") 
        javax.xml.ws.Holder<java.lang.Integer> theSameNameFieldDifferentDataType, 

there should be something like (field names can be different (instead of "Request" and "Response"
suffix it can be something else)), 
        @WebParam(targetNamespace = "http://bugs.cxf/services/bug1", name = "theSameNameFieldDifferentDataType")

        java.lang.String theSameNameFieldDifferentDataTypeRequest, 
        @WebParam(targetNamespace = "http://bugs.cxf/services/bug1", mode = Mode.OUT, name
= "theSameNameFieldDifferentDataType") 
        javax.xml.ws.Holder<java.lang.Integer> theSameNameFieldDifferentDataTypeResponse,


i hope i have written it correctly, according to wsdl.

> 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