java - web service client does not see the method arguments
I create a bottom up web service on axis2 1.4.1 and tomcat 6.20 with a simple method such as
int helloWorld(int op1, int op2) {
return op1 + op2;
}
and then I edit the services.xml file and include this method like this:
<operation name="helloWorld">
<messageReceiver 开发者_高级运维class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" /> </operation>
Then I create a web service client on Eclipse IDE. THe problem is that even though I can see the method on the client, the method appears to accept no arguments.
How should I change the configuration to solve this problem? Thanks a lot,
Axis2 works by reflection, so I suspect you need to make that method public.
精彩评论