QueryServices
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> <typ:TokenValue>nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn</typ:TokenValue> </typ:AccessToken> </soap:Header> <soap:Body> <ldb:QueryServicesRequest> <ldb:serviceID>2T14</ldb:serviceID> <ldb:sdd>2016-10-20</ldb:sdd> <ldb:filterTime>08:00:00+01:00</ldb:filterTime> <ldb:filtercrs></ldb:filtercrs> <ldb:tocFilter></ldb:tocFilter> </ldb:QueryServicesRequest> </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> <QueryServicesResponse xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/"> <QueryServicesResult xmlns:c1="http://thalesgroup.com/RTTI/2007-10-10/ldb/commontypes" xmlns:t5="http://thalesgroup.com/RTTI/2012-01-13/ldbsv/types" xmlns:c3="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/commontypes" xmlns:t10="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/types"> <t10:scheduleStartDate>2016-10-20</t10:scheduleStartDate> <t10:serviceList> <t10:service> <t10:rid>201610207691088</t10:rid> <t10:uid>L91088</t10:uid> <t10:trainid>2T14</t10:trainid> <t10:rsid>LO083700</t10:rsid> <t10:originName>London Liverpool Street</t10:originName> <t10:originCrs>LST</t10:originCrs> <t10:destinationName>Chingford</t10:destinationName> <t10:destinationCrs>CHI</t10:destinationCrs> <t10:scheduledDeparture>2016-10-20T07:48:00</t10:scheduledDeparture> <t10:scheduledArrival>2016-10-20T08:17:00</t10:scheduledArrival> </t10:service> </t10:serviceList> </QueryServicesResult> </QueryServicesResponse> </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 |