cxf-issues mailing list archives

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

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

Evgeny V. Chesnokov commented on CXF-1485:
------------------------------------------

Just checked, when I removed "name" parameters from annotations, leaving only "partName",
that helped. But why is partName parameter ignored when name is declared and parameterStyle
is BARE? It still seems to me as an unexpected behaviour. Sorry to bother you if I'm wrong.

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