Routing Request Examples
Here is an example code to fetch some data from the xml-interface of the routing engine in php:
<?php
$r = new HttpRequest('http://travelplaner.sasabz.it/bin/extxml.bin',
HttpRequest::METH_POST);
$content = file_get_contents("filenameofxmlrequest.xml");
$r->addRawPostData($content);
try {
echo "\n";
$response = $r->send()->getBody();
$depth = 0;
$anz = 0;
while($anz < strlen($response))
{
echo $response[$anz];
if( $response[$anz] == ">")
echo "\n";
++$anz;
}
echo "\n";
}
catch (HttpException $ex)
{
echo $ex;
}
?>
If you have some other examples in other programming languages, don't hestiate to contact us to publish it. It would be a big contribution to the community!