[ 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