通过邮递员的国家铁路SOAP XML API调用
试图使用SOAP XML与Postman一起调用National Rail API,但得到“401-Unauthorized:由于凭据无效,访问被拒绝”响应。以下是我所拥有的: 地址栏通过邮递员的国家铁路SOAP XML API调用,xml,api,soap,Xml,Api,Soap,试图使用SOAP XML与Postman一起调用National Rail API,但得到“401-Unauthorized:由于凭据无效,访问被拒绝”响应。以下是我所拥有的: 地址栏 POST https://lite.realtime.nationalrail.co.uk/OpenLDBWS/ldb10.asmx 标题: Content-Type: text/xml;charset=UTF-8 SOAPAction: http://thalesgroup.com/RTTI/2017-02-
POST https://lite.realtime.nationalrail.co.uk/OpenLDBWS/ldb10.asmx
标题:
Content-Type: text/xml;charset=UTF-8
SOAPAction: http://thalesgroup.com/RTTI/2017-02-02/ldb/GetDepartureBoard
Accept-encoding: gzip, x-gzip, deflate, x-bzip2
正文:
****删除令牌****
LST
10
0
120
以下是一些文档:
此处调用示例:
任何帮助都将不胜感激-我想了解如何正确进行API调用,以便我可以继续使用我的爱好项目应用程序。将地址更改为:
https://lite.realtime.nationalrail.co.uk/OpenLDBWS/ldb9.asmx
换肥皂:信封
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:typ="http://thalesgroup.com/RTTI/2013-11-28/Token/types"
xmlns:ldb="http://thalesgroup.com/RTTI/2016-02-16/ldb/">
如果您使用有效的令牌,这将起作用(我在Postman中进行了测试)
希望有帮助
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:typ="http://thalesgroup.com/RTTI/2013-11-28/Token/types"
xmlns:ldb="http://thalesgroup.com/RTTI/2016-02-16/ldb/">