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>
posted @ 2017-07-04 10:21  有梦就能实现  阅读(489)  评论(0编辑  收藏  举报