Skip to content

Instantly share code, notes, and snippets.

@ibaaj
Last active September 21, 2017 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibaaj/21c88562bb4fbaaeafd4677f1381d3f7 to your computer and use it in GitHub Desktop.
Save ibaaj/21c88562bb4fbaaeafd4677f1381d3f7 to your computer and use it in GitHub Desktop.
query-ratp-realtime.sh
#!/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