java-web服务客户端看不到方法参数
我使用以下简单方法在axis2 1.4.1和tomcat 6.20上创建了一个自底向上的web服务java-web服务客户端看不到方法参数,java,web-services,axis2,Java,Web Services,Axis2,我使用以下简单方法在axis2 1.4.1和tomcat 6.20上创建了一个自底向上的web服务 int helloWorld(int op1, int op2) { return op1 + op2; } 然后我编辑services.xml文件并包括如下方法: <operation name="helloWorld"> <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageRece
int helloWorld(int op1, int op2) {
return op1 + op2;
}
然后我编辑services.xml文件并包括如下方法:
<operation name="helloWorld">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" /> </operation>
然后我在EclipseIDE上创建了一个web服务客户机。问题是,尽管我可以在客户端上看到该方法,但该方法似乎不接受任何参数
如何更改配置以解决此问题?
非常感谢,Axis2通过反射工作,因此我怀疑您需要将该方法公开。您是否使用了Java2WSDL实用程序?