BTW: if you want this service to be WSI-Basic Profile compliant (and thus
interopable) you would probably want to keep it WRAPPED, not BARE. With BARE,
you are ending up with two child elements of the soap:body (two element
message parts in the wsdl), which isn't a "norm".
Dan
On Tue September 22 2009 5:19:52 am Janvier F wrote:
> 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.Doubl
> e") @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="j
> ava.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
>
--
Daniel Kulp
[email protected]
http://www.dankulp.com/blog