• Axis2 服务器端抛出ServiceClass object does not implement问题解决方法


           在axis2 升级过程中遇到 The ServiceClass object does not implement the required method in the following form: OMElement sayHelloNew(OMElement e)错误,原因是高版本需要对方法定义,解决的方法是在service.xml里面对服务器端开放的服务(操作方法)进行说明。比如我的服务端实现了这两个方法add和hello,那么就需要这么定义一下:

          <operation name="hello" >
            <messageReceiver  mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
        </operation>
        <operation name="add" >
            <messageReceiver  mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
        </operation>
    
  • 相关阅读:
    前端之JavaScript
    前端之CSS
    前端之HTML
    编程总结
    线程
    锁机制,信号机制,事件机制
    并发编程
    struct
    linux查看端口
    vue页面跳转传参
  • 原文地址:https://www.cnblogs.com/firstdream/p/7115289.html
Copyright © 2020-2023  润新知