You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Evgeny V. Chesnokov (JIRA)" <ji...@apache.org> on 2008/03/21 16:25:37 UTC

[jira] Created: (CXF-1485) @WebParam / @WebResult partName parameter ignored when @SOAPBinding parameterStyle=BARE

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


[jira] Commented: (CXF-1485) @WebParam / @WebResult partName parameter ignored when @SOAPBinding parameterStyle=BARE

Posted by "Evgeny V. Chesnokov (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (CXF-1485) @WebParam / @WebResult partName parameter ignored when @SOAPBinding parameterStyle=BARE

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ 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.