Last active
September 21, 2017 11:47
-
-
Save ibaaj/21c88562bb4fbaaeafd4677f1381d3f7 to your computer and use it in GitHub Desktop.
query-ratp-realtime.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
read -d '' query << EOF | |
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" | |
xmlns="http://wsiv.ratp.fr" xmlns:xsd="http://wsiv.ratp.fr/xsd"> | |
<soap:Header/> | |
<soap:Body> | |
<getStations> | |
<station> | |
<xsd:name>Censier-Daubenton</xsd:name> | |
</station> | |
<limit>1</limit> | |
</getStations> | |
</soap:Body> | |
</soap:Envelope> | |
EOF | |
curl -X POST \ | |
-H 'Content-Type: application/soap+xml;charset=UTF-8' \ | |
-d $query \ | |
'http://opendata-tr.ratp.fr/wsiv/services/Wsiv?wsdl='; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment