GetReasonCodeList

Sample query & responses are shown below;

LDB-STAFF
https://lite.realtime.nationalrail.co.uk/OpenLDBSVWS/ldbsv10.asmx

Query:

<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/ldbsv/">
   <soap:Header>
      <typ:AccessToken>
         <!--type: string-->
         <typ:TokenValue>nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn</typ:TokenValue>
      </typ:AccessToken>
   </soap:Header>
   <soap:Body>
      <ldb:GetReasonCodeListRequest/>
   </soap:Body>
</soap:Envelope>

Response:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetReasonCodeListResponse xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/">
         <GetReasonCodeListResult>
            <reason xmlns="http://thalesgroup.com/RTTI/2012-01-13/ldbsv/types">
               <code>501</code>
               <lateReason>This train has been delayed by a broken down train</lateReason>
               <cancReason>This train has been cancelled because of a broken down train</cancReason>
            </reason>
            <reason xmlns="http://thalesgroup.com/RTTI/2012-01-13/ldbsv/types">
               <code>502</code>
               <lateReason>This train has been delayed by a broken windscreen on the train</lateReason>
               <cancReason>This train has been cancelled because of a broken windscreen on the train</cancReason>
            </reason>
           [TRUNCATED FOR THIS EXAMPLE]...
         </GetReasonCodeListResult>
      </GetReasonCodeListResponse>
   </soap:Body>
</soap:Envelope>

National Rail Enquiries Data Feeds
Data Feeds About the Feeds Darwin Webservice (Public) Darwin Webservice (Staff) Historical Service Performance Push Port KnowledgeBase DTD Locations (PoC) Real Time Journey Planner
LDB API About
LDB-SV API About
HSP About
DTD About Fares Timetable
Push Port About XML Schemas Schedules Associations Train Status Station Messages Alarms Train Order Train Alerts Formations Formation loading
This article is issued from Openraildata. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.