Table of Contents

SOAP Structure

To understand ORS SOAP API you must first understant its structure.

Content types

ORS currently supports 5 different content types. Each type has its own characteristics and therefore you must use a correct call method to get a desired content.

Content types:

Search parameters

Here is a list of possible ORS search parameters.

Some of the IDs for search parameters can be found on our CSV lists:

Service types: http://ors.si/csvs/vpcs_en.csv

Room types: http://ors.si/csvs/zacs_en.csv

Regions: http://ors.si/csvs/regions_en.csv

City ID's: http://ors.si/csvs/oids_en.csv

Hotel facts: http://ors.si/csvs/facts_en.csv

IATA Codes (airports): http://ors.si/csvs/ahcs_en.csv

Touroperators and their CRS codes: http://ors.si/csvs/tocs.csv

SOAP Call

SOAP Call is combined with api call and arguments. First argument is a string and represent call method. The rest of arguments are call method parameters.

API Call

To retrieve offers for a specific content type you must use a correct api call.

Syntax:

Use this syntax for using a correct call method: orsxml_{$typ}_api_call where $typ is a one of the available ORS content types.

Usage:

// Example for 'hotel' call method
// ...use $typ to create a valid call method
$typ = 'hotel';
$soapClient->{"orsxml_{$typ}_api_call"}( 'regions', $searchParams, $header)
 
// ...or without $typ
$soapClient->orsxml_hotel_api_call( 'regions', $searchParams, $header)
 
// Example for 'pauschal' call method
$soapClient->orsxml_pauschal_api_call( 'regions', $searchParams, $header)
 
// Example for 'trips' call method
$soapClient->orsxml_trips_api_call( 'regions', $searchParams, $header)
 
// Example for 'extras' call method
$soapClient->orsxml_extras_api_call( 'offers', $searchParams, $header)