Java AxisFault:SOAP请求无法匹配消息的任何部分
我根据公司的WSDL地址编写了一个客户机。但是当我运行这个客户机时,它无法发送成功! 网址: 例外情况是:Java AxisFault:SOAP请求无法匹配消息的任何部分,java,web-services,soap,wsdl,Java,Web Services,Soap,Wsdl,我根据公司的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 fai
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/....>
这是我的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>
targetNamespace=“TJYYWebServiceApplication”
TJYY
+
+
+
-
-
sendXML
-
-
-
-
-
请帮帮我!谢谢大家! 我相信它正在寻找您的数据作为有效负载元素的值。就像45060319850405100635一样,我不明白。你能详细说明一下吗?试试“stringxml=”45060319850405100635“它可能还要求这是带有名称空间和XML开始标记的完整XML。但我使用Web服务附带的Myeclipse Explore send成功。只是代码失败。使用fiddler捕获这两个请求并进行比较。成功调用将精确显示数据的格式。
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>