我正在嘗試爲國家鐵路諮詢公司的SOAP服務(http://www.livedepartureboards.co.uk/ldbws/)實施客戶端。SOAP Action WSDL
我將WSDL(http://realtime.nationalrail.co.uk/ldbws/wsdl.aspx)粘貼到http://soapclient.com/soaptest.html中,但是我收到錯誤消息「無法處理沒有有效操作參數的請求,請提供有效的soap操作。該採取什麼行動?
感謝, 斯圖爾特
編輯:
我只是用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>
這很可能意味着soapclient.com不喜歡WSDL,因爲它自己的原因。 NRE web服務工作正常,但我自己也使用過。 – skaffman
請參閱http://stackoverflow.com/questions/128263/how-do-you-determine-a-valid-soapaction – Jono
簡而言之,搜索soapAction的WSDL。 查看http://stackoverflow.com/questions/128263/how-do-you-determine-a-valid-soapaction – Jono