array(8) {
[0]=>
string(77) "StationBoardResponseType GetDepartureBoard(GetBoardRequestParams $parameters)"
[1]=>
string(75) "StationBoardResponseType GetArrivalBoard(GetBoardRequestParams $parameters)"
[2]=>
string(84) "StationBoardResponseType GetArrivalDepartureBoard(GetBoardRequestParams $parameters)"
[3]=>
string(88) "ServiceDetailsResponseType GetServiceDetails(GetServiceDetailsRequestParams $parameters)"
[4]=>
string(77) "StationBoardResponseType GetDepartureBoard(GetBoardRequestParams $parameters)"
[5]=>
string(75) "StationBoardResponseType GetArrivalBoard(GetBoardRequestParams $parameters)"
[6]=>
string(84) "StationBoardResponseType GetArrivalDepartureBoard(GetBoardRequestParams $parameters)"
[7]=>
string(88) "ServiceDetailsResponseType GetServiceDetails(GetServiceDetailsRequestParams $parameters)"
}
array(2) {
["numRows"]=>
int(3)
["crs"]=>
string(3) "PAD"
}
<br />
<b>Fatal error</b>: Uncaught SoapFault exception: [HTTP] in /var/www/html/lib/OpenLDBWS1.php:36
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://lite.re...', 'http://thalesgr...', 1, 0)
#1 /var/www/html/lib/OpenLDBWS1.php(36): SoapClient->__call('GetDepartureBoa...', Array)
#2 /var/www/html/lib/OpenLDBWS1.php(36): SoapClient->GetDepartureBoard(Array)
#3 /var/www/html/lib/OpenLDBWS1.php(41): OpenLDBWS->StationBoard('GetDepartureBoa...', 3, 'PAD', '', '', '', '')
#4 /var/www/html/debug.php(12): OpenLDBWS->GetDepartureBoard(3, 'PAD', '')
#5 {main}
thrown in <b>/var/www/html/lib/OpenLDBWS1.php</b> on line <b>36</b><br />Still showing all the methods just does not like receiving the departure board data.
This is my main PHP script that intern uses yours. I support multiple destinations and also grab the calling at data. So will be making multiple calls to the api in quick succession is this maybe getting my account blocked? Is this not allowed?
$traceOutput["soapClientRequestHeaders"] = $this->soapClient->__getLastResponseHeaders();
$traceOutput["soapClientResponseHeaders"] = $this->soapClient->__getLastResponseHeaders();
print_r($traceOutput);
That will reveal whether it is a straight forward "HTTP/1.1 401 Unauthorized" is being returned, or something more specific...$OpenLDBWS = new OpenLDBWS("YOUR_ACCESS_TOKEN",TRUE);
Array
(
[soapFaultMessage] =>
[soapClientRequest] => <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://thalesgroup.com/RTTI/2014-02-20/ldb/" xmlns:ns2="http://thalesgroup.com/RTTI/2010-11-01/ldb/commontypes"><SOAP-ENV:Header><ns2:AccessToken><ns2:TokenValue></ns2:TokenValue></ns2:AccessToken></SOAP-ENV:Header><SOAP-ENV:Body><ns1:GetDepartureBoardRequest><ns1:numRows>1</ns1:numRows><ns1:crs>PAD</ns1:crs></ns1:GetDepartureBoardRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
[soapClientResponse] =>
[soapClientRequestHeaders] => HTTP/1.1 429
Cache-Control: private
Content-Length: 57
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-server: liteweb201
Date: Thu, 26 Feb 2015 09:48:16 GMT
[soapClientResponseHeaders] => HTTP/1.1 429
Cache-Control: private
Content-Length: 57
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-server: liteweb201
Date: Thu, 26 Feb 2015 09:48:16 GMT
)
result:
lastRequest:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://thalesgroup.com/RTTI/2014-02-20/ldb/" xmlns:ns2="http://thalesgroup.com/RTTI/2010-11-01/ldb/commontypes"><SOAP-ENV:Header><ns2:AccessToken><ns2:TokenValue>REMOVED BY ME</ns2:TokenValue></ns2:AccessToken></SOAP-ENV:Header><SOAP-ENV:Body><ns1:GetDepartureBoardRequest><ns1:numRows>1</ns1:numRows><ns1:crs>PAD</ns1:crs></ns1:GetDepartureBoardRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
lastResponse:--
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-t...@googlegroups.com.
To post to this group, send email to openrail...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That is a good idea, Noticed another version was running older code making quite frequent requests on retrys (on error)
--
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-t...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/9dd3fe4f-d212-443c-858f-a98765005d44%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to openrail...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/9dd3fe4f-d212-443c-858f-a98765005d44%40googlegroups.com.
--Thanks,Michael
Hi everyone,
Just wanted the share the very simple (no error checking or anything) PHP object encapsulation of the National Rail Enquiries SOAP live departure boards web service that I created for my personal project which I have posted at
https://github.com/railalefan/phpOpenLDBWS
--
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-t...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/4bd42dc2-2238-4d76-a67a-96290bb47930%40googlegroups.com.
Abbey Wood has circular services which start and terminate at Cannon Street, e.g. https://www.opentraintimes.com/schedule/W45092/2020-02-08You may be getting trains from London Bridge to Abbey Wood via the short or long bit of the loop, at a guess.Peter
On Sat, 8 Feb 2020, 15:11 Terence Eden, <teren...@gmail.com> wrote:
--I'm having a little trouble with - https://github.com/railalefan/phpOpenLDBWSIt's an excellent bit of code, but I can't seem to set a filterType on GetDepBoardWithDetails`$response = $OpenLDBWS->GetDepBoardWithDetails(5, "ABW", "LBG", "to");`That *should* set a `$filterType` of `to` and only give me trains going to London Bridge. But it seems to return trains coming both to and from.According to https://lite.realtime.nationalrail.co.uk/OpenLDBWS/, filterType is a string, either "from" or "to".Any idea what I'm doing wrong?On Friday, 19 December 2014 16:38:10 UTC, RailAleFan wrote:Hi everyone,
Just wanted the share the very simple (no error checking or anything) PHP object encapsulation of the National Rail Enquiries SOAP live departure boards web service that I created for my personal project which I have posted at
https://github.com/railalefan/phpOpenLDBWS
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrail...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/4bd42dc2-2238-4d76-a67a-96290bb47930%40googlegroups.com.