Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The XML format is described here:

EDI XML format

PHP example

$xml = file_get_contents('mybooking.xml');
$ch = curl_init("https://portal.ff.geodis.com/api/uploadxmlbooking.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "xml=".$xml);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$d = curl_exec($ch);

...