最近在联系写webservice,通过jar发布,通过网页访问wsdl没问题,但是通过wsdl2java生成的类访问就报错
最近在联系写webservice,通过jar发布的webservice,通过网页访问wsdl没问题,但是通过wsdl2java生成的类访问就报错,报错内容如下:org.a...
最近在联系写webservice,通过jar发布的webservice,通过网页访问wsdl没问题,但是通过wsdl2java生成的类访问就报错,报错内容如下:
org.apache.axis2.AxisFault: The ServiceClass object does not implement the required method in the following form: OMElement sayHelloNew(OMElement e)
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.js.client.HelloServiceNewStub.sayHelloNew(HelloServiceNewStub.java:178)
at com.js.client.Test.main(Test.java:20) 展开
org.apache.axis2.AxisFault: The ServiceClass object does not implement the required method in the following form: OMElement sayHelloNew(OMElement e)
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.js.client.HelloServiceNewStub.sayHelloNew(HelloServiceNewStub.java:178)
at com.js.client.Test.main(Test.java:20) 展开
1个回答
展开全部
是不是因为没有在services.xml中对该方法配置:
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</messageReceivers>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</messageReceivers>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询