Hi people,
I am new to CXF and I would to setup a simple service with two operations add 
and subtract.
My service interface is as follow :
@WebService (name="PlusMinusService")@SOAPBinding(style=Style.DOCUMENT, 
use=Use.LITERAL, parameterStyle=ParameterStyle.BARE)public interface PlusMinus {
        @WebMethod(operationName="add") 
@RequestWrapper(className="java.lang.Double")   
@ResponseWrapper(className="java.lang.Double")          public Double 
add(@WebParam(name="leftParam", mode=Mode.IN) Double left,                      
                    @WebParam(name="rightParam", mode=Mode.IN) Double right);   
          @WebMethod(operationName="subtract")    
@RequestWrapper(className="java.lang.Double")   
@ResponseWrapper(className="java.lang.Double")          public Double 
subtract(@WebParam(name="leftParam", mode=Mode.IN) Double left,                 
                    @WebParam(name="rightParam", mode=Mode.IN) Double right);   
  }
When I call the second operation from the client (for example 
client.subtract(1.2, 1.4)) it is the operation add that is called. If i remove 
the operation add from the interface then the correct operation is called.
Could anyone please tell me what is wrong here? I will appreciate your replies 
very much.
Regards,
J.                                        
_________________________________________________________________
Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows LiveĀ ? 
Lancez-vous !
http://www.microsoft.com/windows/windowslive/default.aspx

Reply via email to