码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-07-04 11:04:25      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:obj   高版本   orm   错误   apache   add   detail   pac   解决   

       在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>

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

标签:obj   高版本   orm   错误   apache   add   detail   pac   解决   

原文地址:http://www.cnblogs.com/firstdream/p/7115289.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!