<soapenv:Reason>
<soapenv:Text xml:lang="en-US">The ServiceClass object does not implement the required method in the following form: OMElement Login(OMElement e)</soapenv:Text>
</soapenv:Reason>
解决方法:
<service name="TestService" >
<Description>
Please Type your service description here
</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" locked="false">TestService</parameter>
</service>
改为:
<service name="TestService" >
<Description>
Please Type your service description here
</Description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
<messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
<parameter name="ServiceClass" locked="false">TestService</parameter>
</service>
参考网址:
http://stackoverflow.com/questions/35720181/the-serviceclass-object-does-not-implement-the-required-method-in-the-following