日期:2014-05-20  浏览次数:20741 次

webService异常问题。
可以访问到服务端的wsdl。、
用axis2 生成客户端代码。调用出现下面异常。
XML code

org.apache.axis2.AxisFault: Message Receiver not found for AxisOperation: getQefResultXMLRequest1。
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    at nc.cmer.webservice.QuireElectromFlowInfoSrvStub.getQefResultXMLRequest1(QuireElectromFlowInfoSrvStub.java:753)
    at nc.cmer.webservice.ClientDemo.main(ClientDemo.java:23)


Java code

    QuireElectromFlowInfoSrvStub stub = new QuireElectromFlowInfoSrvStub("http://127.0.0.1:9083/myServer/services/QuireElectromFlowInfoSrv");
            
            QuireElectromFlowInfoSrvStub.GetQefResultXMLRequest1 gg = new QuireElectromFlowInfoSrvStub.GetQefResultXMLRequest1();
            
            gg.setNo("XYQTRC09032500051");
            System.out.println(stub.getQefResultXMLRequest1(gg).get_return());



------解决方案--------------------
顶一下楼主,恭喜解决问题