Routing Request Examples Routing Request Examples

Here is an example code to fetch some data from the xml-interface of the routing engine in php:

  $r = new HttpRequest('',
  $content = file_get_contents("filenameofxmlrequest.xml");
  try {
    echo "\n";
    $response = $r->send()->getBody();
    $depth = 0;
    $anz = 0;
    while($anz < strlen($response))
        echo $response[$anz];
        if( $response[$anz] == ">")
          echo "\n";
    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!