Table of Contents

SOAP Header Information

Almost all SOAP calls require $header array. Here you enter your licence information, default language code and session id.

Parameters:

Usage:

Here is an example for setting $header array with demo licence information.

// ORSXML header information
$header = array(
    'lang'  => 'en',            // a return language
    'usr'   => 'xmldemo102',    // ORSXML user
    'pass'  => 'orsdemogh1',    // ORSXML password
    'agid'  => '5780',          // agency ID (or account id)
    'sid'   => session_id(),    // this is required so that filtering and sorting works correctly!
    'limits' => 'p:6,t:50',     // set limits (6 offers per page and 50 trips per page)
);

Using API-KEY:

If you have received apikey for your API licence, then you need to put api-key attribute in header array:

// ORSXML header information (using api-key
$header = array(
    'lang'  => 'en',            // a return language
    'api-key'=> 'your-apikey-here' 
    'usr'   => '',              // no longer needed
    'pass'  => '',              // no longer needed
    'agid'  => '',              // no longer needed
    'sid'   => session_id(),    // this is required so that filtering and sorting works correctly!
    'limits' => 'p:6,t:50',     // set limits (6 offers per page and 50 trips per page)
);