https://github.com/openraildata/openldbws-example-java
Example code to use the OpenLDBWS in Java with Apache CXF
https://github.com/openraildata/openldbws-example-java
java openldbws
Last synced: 4 months ago
JSON representation
Example code to use the OpenLDBWS in Java with Apache CXF
- Host: GitHub
- URL: https://github.com/openraildata/openldbws-example-java
- Owner: openraildata
- Created: 2018-11-21T22:10:20.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T13:38:58.000Z (over 1 year ago)
- Last Synced: 2024-11-05T14:35:04.559Z (over 1 year ago)
- Topics: java, openldbws
- Language: Java
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
OpenLDBWS Java Example
======================
This repository contains examples of how to use the National Rail Live
Departure Boards Web Service (OpenLDBWS), located at the following URL:
* https://lite.realtime.nationalrail.co.uk/OpenLDBWS/
To use the service, you will need a token which is available by
signing up at the following URL:
* https://realtime.nationalrail.co.uk/OpenLDBWSRegistration/
Edit ```GetDepartureBoardExample``` and set LDB_TOKEN to your own token.
Next, generate a set of classes from the WSDL file by running:
```mvn generate-sources```
This will create a number of files in src/main/java/com/thalesgroup
which you can use in your own code to call the OpenLDBWS.
Runing ```GetDepartureBoardExample``` will show you departures for
London Euston.
Updating the WSDL
-----------------
Periodically, a new version of the WSDL will be released at:
* https://lite.realtime.nationalrail.co.uk/OpenLDBWS/
This code is written for version 2021-11-01. To update it to use a
later version, edit ```pom.xml``` and change the URL for the WSDL
inside the ```plugins``` tag.
Support
-------
For support and questions with using the OpenLDBWS, please use the
forum at the following URL:
* https://groups.google.com/group/openraildata-talk