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

Reply via email to