AxisFault:SOAP请求无法匹配消息的任何部分

时间:2017-02-07 02:52:39

标签: java web-services soap wsdl

我根据公司的WSDL address.bue编写客户端,当我运行此客户端时,它无法发送成功! 网址:http://172.18.173.201:8087/services/TJYYService?wsdl

例外是:

AxisFault
faultCode:{http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString:The xpath '//ns1:payload' configured to populate the message body from the incoming SOAP request failed to match any part of the message.
faultActor:htt[://172.18.173.201:8087/services/TJYYService
faultNode:
faultDetail:
   {http://www.orionhealth.com/rhapsody/2009/11/faultDetails}RhapsodyFaultDetails:<rfd:Code xmlns:rwsp="http://www.orionhealth.com/rhapsody/....>

这是我的代码:

  public class testTJYYService{ 
    try{
       String endpoint = "http://172.18.173.201:8087/services/TJYYService";
       Service service = new Service();
            Call call = (Call)service.createCall(); 
            call.setTargetEndpointAddress(new URL(endpoint));
            String xml = "45060319850405100635";
            call.setOperationName(new QName(endpoint,"sendXML"));
            String result = (String)call.invoke(new Object[]{xml});
          }catch(Exception e){
            e.printStackTrace();
        }
    }
}

这是我的wsdl部分:

targetNamespace="TJYYWebServiceApplication"
<wsdl:documentation>TJYY</wsdl:documentation>
+<wsdl:message name="sendXMLFault">
+<wsdl:message name="sendXMLRequest">
+<wsdl:message name="sendXMLResponse">
-<wsdl:portType name="TJYYServicePortType">
  -<wsdl:operation name="sendXML">
   <wsdl:documentation>sendXML</wsdl:documentation>
   <wsdl:input wsaw:Action="urn:sendXML" message="ns0:sendXMLRequest"></wsdl:input>
<wsdl:output wsaw:Action="TJYYWebServiceApplication/TJYYServicePortType/sendXMLFault" message="ns0:sendXMLFault"></wsdl:output >
</wsdl:operation>
</wsdl:portType>
-<wsdl:binding type="ns0:TJYYServicePortType" name="TJYYServiceSoap12Binding">
 <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
-<wsdl:operation name="sendXML">
  <soap12:operation style="document" soapAction="urn:sendXML"/>
-<wsdl:input>
   <soap12:body use="literal"/>
 </wsdl:input>
-<wsdl:output>
    <soap12:body use="literal"/>
 </wsdl:output>
-<wsdl:fault name="sendXMLFault">
   <soap12:fault name="sendXMLFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>

请帮帮我!谢谢!

0 个答案:

没有答案