SOAP Action WSDL

Ste*_*art 17 soap wsdl action

我正在尝试为National Rail Inquiries的SOAP服务(http://www.livedepartureboards.co.uk/ldbws/)实施客户端.

我将WSDL(http://realtime.nationalrail.co.uk/ldbws/wsdl.aspx)粘贴到http://soapclient.com/soaptest.html中,但我收到错误消息"无法处理请求有效的行动参数.请提供有效的肥皂行动."; 究竟应该采取什么行动呢?

谢谢,斯图尔特

编辑:

我只是用soapclient.com作为一个简单的例子.在我的软件中,我发送以下XML; 我仍然觉得我错过了一个动作.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://thalesgroup.com/RTTI/2008-02-20/ldb/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:ldbt2="http://thalesgroup.com/RTTI/2008-02-20/ldb/types" xmlns:ldbt="http://thalesgroup.com/RTTI/2007-10-10/ldb/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ct="http://thalesgroup.com/RTTI/2007-10-10/ldb/commontypes" >
 <SOAP-ENV:Body>
  <ldbt2:GetDepartureBoardRequest xmlns:ldbt2="http://thalesgroup.com/RTTI/2008-02-20/ldb/" >
   <ldbt2:numRows>5</ldbt2:numRows>
   <ldbt2:crs>WAT</ldbt2:crs>
   <ldbt2:filterCrs>GLD</ldbt2:filterCrs>
   <ldbt2:filterType>to</ldbt2:filterType>
   <ldbt2:timeOffset>0</ldbt2:timeOffset>
  </ldbt2:GetDepartureBoardRequest>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Run Code Online (Sandbox Code Playgroud)

myt*_*thz 18

如果它是SOAP 1.1服务,那么您还需要包含SOAPAction HTTP头字段:

http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528

  • 它应该与 SOAPAction 的 WSDL 值匹配 (2认同)