You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jury Litvinoff (Created) (JIRA)" <ji...@apache.org> on 2012/04/20 06:27:38 UTC

[jira] [Created] (CXF-4251) Error when calling methods with the similar parameters

Error when calling methods with the similar parameters
------------------------------------------------------

                 Key: CXF-4251
                 URL: https://issues.apache.org/jira/browse/CXF-4251
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.6
         Environment: Tomcat 6.0.26
            Reporter: Jury Litvinoff
            Priority: Critical


Two methods with similar parameters - Example code:

  @WebMethod(operationName="saveCosts", action="costs")
  public String saveCosts(@WebParam(name = "way")String way,
                          @WebParam(name = "item")String item,
                          @WebParam(name = "project")String proj,
                          @WebParam(name = "period")String period,
                          @WebParam(name = "val")String val);
  
  @WebMethod(operationName="saveBalance", action="balance")
  public String saveBalance(@WebParam(name = "way")String way,
                            @WebParam(name = "item")String item,
                            @WebParam(name = "project")String proj,
                            @WebParam(name = "period")String period,
                            @WebParam(name = "val")String val);

When you call "saveCosts", Web service transfers control to another method - "saveBalance"!!!
Why???

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CXF-4251) Error when calling methods with the similar parameters

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-4251.
------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: NeedMoreInfo)
                   Invalid
         Assignee: Daniel Kulp


Unless someone else steps up to supply a patch, we really have no plans or desire to fix this.   The resulting service is not WSI-BasicProfile compliant and is thus not interopable and outside our target.  Specifically, it would violate:

R9981 An ENVELOPE MUST have exactly zero or one child elements of the soap11:Body element. CORE TESTABLE BP1881

R2210 If a document-literal binding in a DESCRIPTION does not specify the parts attribute on a wsoap11:body element, the corresponding abstract wsdl:message MUST define zero or one wsdl:parts. CORE TESTABLE BP2119




                
> Error when calling methods with the similar parameters
> ------------------------------------------------------
>
>                 Key: CXF-4251
>                 URL: https://issues.apache.org/jira/browse/CXF-4251
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.6
>         Environment: Tomcat 6.0.26
>            Reporter: Jury Litvinoff
>            Assignee: Daniel Kulp
>            Priority: Critical
>              Labels: similar_parameters
>             Fix For: Invalid
>
>
> Two methods with similar parameters - Example code:
>   @WebMethod(operationName="saveCosts", action="costs")
>   public String saveCosts(@WebParam(name = "way")String way,
>                           @WebParam(name = "item")String item,
>                           @WebParam(name = "project")String proj,
>                           @WebParam(name = "period")String period,
>                           @WebParam(name = "val")String val);
>   
>   @WebMethod(operationName="saveBalance", action="balance")
>   public String saveBalance(@WebParam(name = "way")String way,
>                             @WebParam(name = "item")String item,
>                             @WebParam(name = "project")String proj,
>                             @WebParam(name = "period")String period,
>                             @WebParam(name = "val")String val);
> When I run "saveCosts", Web service transfers control to another method - "saveBalance"!!!
> Why???

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-4251) Error when calling methods with the similar parameters

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-4251:
-----------------------------

    Fix Version/s: NeedMoreInfo


Would need a full test case for this.   My gut feeling is that there is a "BARE" annotation on the SEI which would result in this not being WSI-BP compliant, but a test case would be best to really see where the issue lies.
                
> Error when calling methods with the similar parameters
> ------------------------------------------------------
>
>                 Key: CXF-4251
>                 URL: https://issues.apache.org/jira/browse/CXF-4251
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.6
>         Environment: Tomcat 6.0.26
>            Reporter: Jury Litvinoff
>            Priority: Critical
>              Labels: similar_parameters
>             Fix For: NeedMoreInfo
>
>
> Two methods with similar parameters - Example code:
>   @WebMethod(operationName="saveCosts", action="costs")
>   public String saveCosts(@WebParam(name = "way")String way,
>                           @WebParam(name = "item")String item,
>                           @WebParam(name = "project")String proj,
>                           @WebParam(name = "period")String period,
>                           @WebParam(name = "val")String val);
>   
>   @WebMethod(operationName="saveBalance", action="balance")
>   public String saveBalance(@WebParam(name = "way")String way,
>                             @WebParam(name = "item")String item,
>                             @WebParam(name = "project")String proj,
>                             @WebParam(name = "period")String period,
>                             @WebParam(name = "val")String val);
> When I run "saveCosts", Web service transfers control to another method - "saveBalance"!!!
> Why???

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-4251) Error when calling methods with the similar parameters

Posted by "Jury Litvinoff (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jury Litvinoff updated CXF-4251:
--------------------------------

    Description: 
Two methods with similar parameters - Example code:

  @WebMethod(operationName="saveCosts", action="costs")
  public String saveCosts(@WebParam(name = "way")String way,
                          @WebParam(name = "item")String item,
                          @WebParam(name = "project")String proj,
                          @WebParam(name = "period")String period,
                          @WebParam(name = "val")String val);
  
  @WebMethod(operationName="saveBalance", action="balance")
  public String saveBalance(@WebParam(name = "way")String way,
                            @WebParam(name = "item")String item,
                            @WebParam(name = "project")String proj,
                            @WebParam(name = "period")String period,
                            @WebParam(name = "val")String val);

When I run "saveCosts", Web service transfers control to another method - "saveBalance"!!!
Why???

  was:
Two methods with similar parameters - Example code:

  @WebMethod(operationName="saveCosts", action="costs")
  public String saveCosts(@WebParam(name = "way")String way,
                          @WebParam(name = "item")String item,
                          @WebParam(name = "project")String proj,
                          @WebParam(name = "period")String period,
                          @WebParam(name = "val")String val);
  
  @WebMethod(operationName="saveBalance", action="balance")
  public String saveBalance(@WebParam(name = "way")String way,
                            @WebParam(name = "item")String item,
                            @WebParam(name = "project")String proj,
                            @WebParam(name = "period")String period,
                            @WebParam(name = "val")String val);

When you call "saveCosts", Web service transfers control to another method - "saveBalance"!!!
Why???

    
> Error when calling methods with the similar parameters
> ------------------------------------------------------
>
>                 Key: CXF-4251
>                 URL: https://issues.apache.org/jira/browse/CXF-4251
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.6
>         Environment: Tomcat 6.0.26
>            Reporter: Jury Litvinoff
>            Priority: Critical
>              Labels: similar_parameters
>
> Two methods with similar parameters - Example code:
>   @WebMethod(operationName="saveCosts", action="costs")
>   public String saveCosts(@WebParam(name = "way")String way,
>                           @WebParam(name = "item")String item,
>                           @WebParam(name = "project")String proj,
>                           @WebParam(name = "period")String period,
>                           @WebParam(name = "val")String val);
>   
>   @WebMethod(operationName="saveBalance", action="balance")
>   public String saveBalance(@WebParam(name = "way")String way,
>                             @WebParam(name = "item")String item,
>                             @WebParam(name = "project")String proj,
>                             @WebParam(name = "period")String period,
>                             @WebParam(name = "val")String val);
> When I run "saveCosts", Web service transfers control to another method - "saveBalance"!!!
> Why???

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4251) Error when calling methods with the similar parameters

Posted by "Jury Litvinoff (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262516#comment-13262516 ] 

Jury Litvinoff commented on CXF-4251:
-------------------------------------

Yes!

@WebService(name="Xxx")
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface Xx {
...

                
> Error when calling methods with the similar parameters
> ------------------------------------------------------
>
>                 Key: CXF-4251
>                 URL: https://issues.apache.org/jira/browse/CXF-4251
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.6
>         Environment: Tomcat 6.0.26
>            Reporter: Jury Litvinoff
>            Priority: Critical
>              Labels: similar_parameters
>             Fix For: NeedMoreInfo
>
>
> Two methods with similar parameters - Example code:
>   @WebMethod(operationName="saveCosts", action="costs")
>   public String saveCosts(@WebParam(name = "way")String way,
>                           @WebParam(name = "item")String item,
>                           @WebParam(name = "project")String proj,
>                           @WebParam(name = "period")String period,
>                           @WebParam(name = "val")String val);
>   
>   @WebMethod(operationName="saveBalance", action="balance")
>   public String saveBalance(@WebParam(name = "way")String way,
>                             @WebParam(name = "item")String item,
>                             @WebParam(name = "project")String proj,
>                             @WebParam(name = "period")String period,
>                             @WebParam(name = "val")String val);
> When I run "saveCosts", Web service transfers control to another method - "saveBalance"!!!
> Why???

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira