Service_V4
Click here for a complete list of operations.
CheckAvailability
(Clone of V3 - RailGun Cache) Main Function for checking hotels + apartments availabilities & Rates, You need to specify Country, City , Check in / out Date, Nationality ID , Adult Pax + Child Pax , it is highly recommended to provide land category filters + LimitRoomType (which limits no. of rooms coming from each hotel) , Detailed Description can be found in Softex XML API Documentation. Response provides available Rates per Stay. Similar to Check Availability but Needs CountryID / Nationaly instead of Market ID , List of Countries can be retreived through method : GetBasicData_Countries , Availability Filter is Disabled and Non Effective starting from : 19.11.2019
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /service_v4.asmx HTTP/1.1
Host: api3.darinab2b.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://travelcontrol.softexsw.us/CheckAvailability"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CheckAvailability xmlns="http://travelcontrol.softexsw.us/">
<SecStr>string</SecStr>
<AccountName>string</AccountName>
<UserName>string</UserName>
<Password>string</Password>
<AgentID>int</AgentID>
<FromDate>string</FromDate>
<ToDate>string</ToDate>
<CountryID>int</CountryID>
<CityID>int</CityID>
<MinLandCategory>int</MinLandCategory>
<MaxLandCategory>int</MaxLandCategory>
<AreaID>int</AreaID>
<AreaName>string</AreaName>
<PropertyType>int</PropertyType>
<HotelName>string</HotelName>
<OccupancyID>int</OccupancyID>
<AdultPax>int</AdultPax>
<ChildPax>int</ChildPax>
<ChildrenAges>
<int>int</int>
<int>int</int>
</ChildrenAges>
<ExtraBedAdult>boolean</ExtraBedAdult>
<ExtraBedChild>boolean</ExtraBedChild>
<Nationality_CountryID>int</Nationality_CountryID>
<CurrencyID>int</CurrencyID>
<MaxOverallPrice>decimal</MaxOverallPrice>
<Availability>ShowAll or ShowAvailableOnly</Availability>
<RoomType>int</RoomType>
<MealPlan>int</MealPlan>
<GetHotelImageLink>boolean</GetHotelImageLink>
<GetHotelMapLink>boolean</GetHotelMapLink>
<Source>int</Source>
<LimitRoomTypesInResult>int</LimitRoomTypesInResult>
</CheckAvailability>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CheckAvailabilityResponse xmlns="http://travelcontrol.softexsw.us/">
<CheckAvailabilityResult>xml</CheckAvailabilityResult>
</CheckAvailabilityResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /service_v4.asmx HTTP/1.1
Host: api3.darinab2b.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CheckAvailability xmlns="http://travelcontrol.softexsw.us/">
<SecStr>string</SecStr>
<AccountName>string</AccountName>
<UserName>string</UserName>
<Password>string</Password>
<AgentID>int</AgentID>
<FromDate>string</FromDate>
<ToDate>string</ToDate>
<CountryID>int</CountryID>
<CityID>int</CityID>
<MinLandCategory>int</MinLandCategory>
<MaxLandCategory>int</MaxLandCategory>
<AreaID>int</AreaID>
<AreaName>string</AreaName>
<PropertyType>int</PropertyType>
<HotelName>string</HotelName>
<OccupancyID>int</OccupancyID>
<AdultPax>int</AdultPax>
<ChildPax>int</ChildPax>
<ChildrenAges>
<int>int</int>
<int>int</int>
</ChildrenAges>
<ExtraBedAdult>boolean</ExtraBedAdult>
<ExtraBedChild>boolean</ExtraBedChild>
<Nationality_CountryID>int</Nationality_CountryID>
<CurrencyID>int</CurrencyID>
<MaxOverallPrice>decimal</MaxOverallPrice>
<Availability>ShowAll or ShowAvailableOnly</Availability>
<RoomType>int</RoomType>
<MealPlan>int</MealPlan>
<GetHotelImageLink>boolean</GetHotelImageLink>
<GetHotelMapLink>boolean</GetHotelMapLink>
<Source>int</Source>
<LimitRoomTypesInResult>int</LimitRoomTypesInResult>
</CheckAvailability>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CheckAvailabilityResponse xmlns="http://travelcontrol.softexsw.us/">
<CheckAvailabilityResult>xml</CheckAvailabilityResult>
</CheckAvailabilityResponse>
</soap12:Body>
</soap12:Envelope>