0

下面给出了soap api的请求

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:WashOut"
  <soapenv:Header/>
  <soapenv:Body>
  <urn:Activate_VAS_Request soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
     <OPER_NAME xsi:type="xsd:string">?</OPER_NAME>
     <OPER_PASSWORD xsi:type="xsd:string">?</OPER_PASSWORD>
     <MSISDN xsi:type="xsd:string">?</MSISDN>
     <VAS_ID xsi:type="xsd:int">?</VAS_ID>
     <PARAM_VAL xsi:type="xsd:string">?</PARAM_VAL>
  </urn:Activate_VAS_Request>
  </soapenv:Body>
</soapenv:Envelope>

请求的响应如下。

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
  <soap:Fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
     <faultcode xsi:type="xsd:QName">Server</faultcode>
     <faultstring xsi:type="xsd:string">Cannot find SOAP action mapping for</faultstring>
  </soap:Fault>
 </soap:Body>
</soap:Envelope>

导致错误的原因。

4

2 回答 2

0

此错误意味着 WashOut 无法找到请求的操作(在您的特定情况下,它甚至无法解析它——它是空字符串)。

您使用的wash_out 版本也非常旧。当前版本是 0.9.0。请升级。

于 2014-03-06T03:26:59.017 回答
0

我已经看到一些 Soap 客户端发送请求的方式是wash_out 无法推断出soapAction 值,因此它无法将请求链接到wash_out 控制器中的操作。

为了获得工作参考,我认为您应该尝试使用诸如soapUISavon之类的肥皂客户端,我已经看到他们以一种方式发送请求,wash_out 可以推断出请求中的 soapAction。

于 2015-03-06T18:50:57.657 回答