I am developing a web service using Camel and CXF and use the "first code". Everything works fine for methods that have one parameter. However, methods with several parameters receive only the first parameter, others - to zeros. No exception selected.
Here is my route:
<route>
<from uri="cxf:bean:serverEndPoint" />
<log message=">>> data is : ${body}"/>
<choice>
<when>
<simple>${in.header.operationName} == 'doSomething'</simple>
<to uri="bean:TestWSBean?method=doSomething"/>
</when>
...
</route>
The server endpoint is defined as follows:
<cxf:cxfEndpoint id="serverEndPoint"
address="http://localhost:9000/casServer/"
serviceClass="com.test.iface.TestWebService">
<cxf:inInterceptors>
<ref bean="loggingInInterceptor"/>
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="loggingOutInterceptor"/>
</cxf:outInterceptors>
</cxf:cxfEndpoint>
And the bean implementation itself:
@WebService
public interface TestWebService {
public String doSomething(String one, String two);
}
My question is pretty simple, what needs to be done to send multiple parameters?
source
share