cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1485) @WebParam / @WebResult partName parameter ignored when @SOAPBinding parameterStyle=BARE
Date Fri, 21 Mar 2008 15:45:24 GMT

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

Daniel Kulp commented on CXF-1485:
----------------------------------


It's a stupid spec compliance thing.   I remember hitting this when doing the TCK stuff. 
 There is a conformance thing in the spec someplace that says if both are specified, one is
ignore and the default used.    It's pretty bizzarre.

> @WebParam / @WebResult partName parameter ignored when @SOAPBinding parameterStyle=BARE
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-1485
>                 URL: https://issues.apache.org/jira/browse/CXF-1485
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>            Reporter: Evgeny V. Chesnokov
>
> Here's my annotated method:
>     @WebMethod @WebResult(partName="exists", name = "exists")
>     @ResponseWrapper(className = "java.lang.Boolean") @RequestWrapper(className = "java.lang.Long")
>     @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
>     public boolean checkBICSwiftExists(@WebParam(partName="bicId", name = "bicId") long
bicId);
> This results in the following WSDL:
> ...
>   <xs:element name="checkBICSwiftExists" nillable="true" type="xs:long" /> 
>   <xs:element name="checkBICSwiftExistsResponse" nillable="true" type="xs:boolean"
/> 
> ...
>   <wsdl:operation name="checkBICSwiftExists">
>   <wsdl:input message="tns:checkBICSwiftExists" name="checkBICSwiftExists" /> 
>   <wsdl:output message="tns:checkBICSwiftExistsResponse" name="checkBICSwiftExistsResponse"
/> 
>   </wsdl:operation>
> ...
>   <wsdl:message name="checkBICSwiftExists">
>   <wsdl:part element="tns:checkBICSwiftExists" name="parameters" />  <!-- here
is the wrong part, name should be "bicId" ! -->
>   </wsdl:message>
>   <wsdl:message name="checkBICSwiftExistsResponse">
>   <wsdl:part element="tns:checkBICSwiftExistsResponse" name="parameters" />   <!--
here is the wrong part, name should be "exists" ! -->
>   </wsdl:message>
> That, when wsdl2java is called, results in wrong parameter name, i.e. "long parameters".
> Hope that helps, bye,
> Evgeny.

-- 
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