Yesterday a friend asked with some help in accessing the National Rail API - an almost totally undocumented SOAP API, with useless error messages and support staff utterly lacking in knowledge - you may be suspecting that I'm not particularly impressed with it.
After 4hrs of trial and error just trying to access it, I finally got some working code, which I have put on Github and bundled as a Gem. It should be pretty easy to expand/change if you want to do more.
You can find usage instructions on the National Rail API project page. For reference. If you want any help with accessing the SOAP API, pop an issue request on Github, post a comment on here, or drop me an email.
Which just leaves me to ask, why couldn't National Rail have done this themselves?!