The server did not recognise the action which i...

    使用axis生成的client code調用web service,ok;用另外一個web service 調用這個web service,failed。拋出異常:The server did not recognise the action which it received,信息以下: java

org.apache.axis2.AxisFault: The server did not recognise the action which it received: 
at org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invoke(AddressingInFaultHandler.java:114)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:539)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102)
at org.sanfan.cai.connector.ProcessServerServiceConnector.send(ProcessServerServiceConnector.java:108)
at org.sanfan.cai.action.SubmissionThread.run(SubmissionThread.java:47) web

    解決辦法:在wsdl文件的soapAction中設置OperationName,而後使用axis命令從新生成服務端和客戶端代碼,這樣server就能找到這個action了。 apache

<wsdlsoap:operation soapAction=""/>
相關文章
相關標籤/搜索