User Tools

Site Tools


ors-soap-api:public:soap_header

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== SOAP Header Information ====== Almost all SOAP calls require ''$header array''. Here you enter your licence information, default language code and session id. **Parameters:** * ''lang'' : a return language that API returns. If you leave blank than a default language set on your ORS account is used. * ''usr'' : ORS account username * ''pass'' : ORS account password * ''agid'' : ORS account ID * ''ibeid'' : partner ID (affiliate) * ''sid'' : session ID. This __ID must be unique__ for each user on your page because it is used for filtering and sorting of returned results * ''limits'' : to set maximum number of search results per page. Use 'p' for limit offers and 't' to limit trips (see example to understand the usage) * **Maximum limit** for offers is 30 results per page * **Maximum limit** for trips is 500 results per page * ''xuser'' : user id for data export credentials * ''xpass'' : user password for data export credentials **Usage:** Here is an example for setting ''$header'' array with [[demo_licence|demo licence]] information. <code php> // ORSXML header information $header = array( 'lang' => 'en', // a return language 'usr' => 'xmldemo', // ORSXML user 'pass' => 'orsdemo', // 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) ); </code>

ors-soap-api/public/soap_header.1424621567.txt.gz · Last modified: 2015/02/22 17:12 by admin