大家好,又见面了,我是你们的朋友全栈君
下面是一个service.xml
<?xml version=”1.0″ encoding=”UTF-8″?> <service name=”HelloService”> <description> Web Service例子 </description> <parameter name=”ServiceClass”> com.axis2webservice_test.HelloServiceNew </parameter> <operation name=”sayHelloNew”> <messageReceiver class=”org.apache.axis2.rpc.receivers.RPCMessageReceiver” /> </operation> <operation name=”sayHelloToPersonNew”> <messageReceiver class=”org.apache.axis2.rpc.receivers.RPCMessageReceiver” /> </operation> <operation name=”updateData”> <messageReceiver class=”org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver” /> </operation> <messageReceivers> <messageReceiver mep=”http://www.w3.org/2004/08/wsdl/in-out” class=”org.apache.axis2.rpc.receivers.RPCMessageReceiver” /> <messageReceiver mep=”http://www.w3.org/2004/08/wsdl/in-only” class=”org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver” /> </messageReceivers> </service>
如果去掉红色部分则会报错:
- Exception in thread “main” org.apache.axis2.AxisFault: The ServiceClass object does not implement the required method in the following form: OMElement saveAgent(OMElement e)
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/194274.html原文链接:https://javaforall.cn