Hi,

I'd suspect that both your operations use the same message, in which case CXF 
can't distinguish between them. Perhaps check the generated WSDL. If that's the 
case, you will probably have to use different parameter names for your two 
operations (I'm not sure, I've always built the WSDL first).

Regards,

Anne

> -----Ursprüngliche Nachricht-----
> Von: Janvier F [mailto:[email protected]]
> Gesendet: Dienstag, 22. September 2009 11:20
> An: [email protected]
> Betreff: My service is running only the first operation
> 
> 
> 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