ServiceClass对象没有以以下形式实现所需的方法:OMElement login(OMElement e) [英] The ServiceClass object does not implement the required method in the following form: OMElement login(OMElement e)

查看:204
本文介绍了ServiceClass对象没有以以下形式实现所需的方法:OMElement login(OMElement e)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将axis2从1.6.2升级到1.7.0之后,出现以下异常:

After i upgraded the axis2 from 1.6.2 to 1.7.0 i get the following exception:

"ServiceClass对象未以以下形式实现所需的方法:OMElement"

"The ServiceClass object does not implement the required method in the following form: OMElement"

我找到的大多数答案都建议在services.xml中设置rpc消息接收者,这是我以前版本中已经拥有的:

most of the answers I found suggest to set the rpc message receivers in services.xml which i already had from previous version:

<service name="LogService" scope="transportsession">
<description>
    Log
</description>
<messageReceivers>
    <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
    <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
<parameter name="ServiceClass">
    com.viaMEDICI.viaWS.services.LogService
</parameter>

还有其他想法可能出什么问题了吗?列出服务,wsdl看起来不错.

Any other ideas what could have gone wrong? List services and the wsdl looks fine.

LE:

有所不同的是,名称空间以前是"axis2ns2",现在是"nsoMZdG".不知道这可能是从哪里来的..而且我也无法通过调用ws restful以及仅第一个来获取所有参数...

something different is the namespace before was "axis2ns2" now it is "nsoMZdG". No idea where could this come from.. and also i don't get all parameters by calling the ws restful and just only the first one...

推荐答案

As noted in the Apache Axis2 1.7.0 release notes, the http://www.w3.org/2004/08/wsdl/XXX MEP URIs are no longer supported. Use http://www.w3.org/ns/wsdl/XXX instead.

这篇关于ServiceClass对象没有以以下形式实现所需的方法:OMElement login(OMElement e)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆