SoapDispatcher
Click here for a complete list of operations.
sendOTAHotelAvail
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 /dispatcher.asmx HTTP/1.1
Host: www.med-hotels.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "sendOTAHotelAvail"
<?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:Header>
<authentication xmlns="http://xmlota.wspan.com/webservice/">
<userid>string</userid>
<password>string</password>
</authentication>
</soap:Header>
<soap:Body>
<OTA_HotelAvailRQ SummaryOnly="boolean" SortOrder="" AvailRatesOnly="boolean" BestOnly="boolean" RateRangeOnly="boolean" ExactMatchOnly="boolean" AllowPartialAvail="boolean" RequestedCurrency="string" IsModify="boolean" MaxResponses="positiveInteger" SearchCacheLevel="" xmlns="http://www.opentravel.org/OTA/2003/05">
<AvailRequestSegments MaximumWaitTime="decimal">
<AvailRequestSegment AvailReqType="" MoreDataEchoToken="string" ResponseType="">
<StayDateRange Start="string" Duration="string" End="string" />
<RateRange CurrencyCode="string" MinRate="decimal" MaxRate="decimal" FixedRate="decimal" />
<RatePlanCandidates>
<RatePlanCandidate xsi:nil="true" />
<RatePlanCandidate xsi:nil="true" />
</RatePlanCandidates>
<Profiles>
<ProfileInfo xsi:nil="true" />
<ProfileInfo xsi:nil="true" />
</Profiles>
<RoomStayCandidates>
<RoomStayCandidate xsi:nil="true" />
<RoomStayCandidate xsi:nil="true" />
</RoomStayCandidates>
<HotelSearchCriteria>
<Criterion xsi:nil="true" />
<Criterion xsi:nil="true" />
</HotelSearchCriteria>
<TPA_Extensions>xml</TPA_Extensions>
</AvailRequestSegment>
<AvailRequestSegment AvailReqType="" MoreDataEchoToken="string" ResponseType="">
<StayDateRange Start="string" Duration="string" End="string" />
<RateRange CurrencyCode="string" MinRate="decimal" MaxRate="decimal" FixedRate="decimal" />
<RatePlanCandidates>
<RatePlanCandidate xsi:nil="true" />
<RatePlanCandidate xsi:nil="true" />
</RatePlanCandidates>
<Profiles>
<ProfileInfo xsi:nil="true" />
<ProfileInfo xsi:nil="true" />
</Profiles>
<RoomStayCandidates>
<RoomStayCandidate xsi:nil="true" />
<RoomStayCandidate xsi:nil="true" />
</RoomStayCandidates>
<HotelSearchCriteria>
<Criterion xsi:nil="true" />
<Criterion xsi:nil="true" />
</HotelSearchCriteria>
<TPA_Extensions>xml</TPA_Extensions>
</AvailRequestSegment>
</AvailRequestSegments>
</OTA_HotelAvailRQ>
</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>
<OTA_HotelAvailRS xmlns="http://www.opentravel.org/OTA/2003/05">
<POS>
<Source AgentSine="string" PseudoCityCode="string" ISOCountry="string" ISOCurrency="string" AgentDutyCode="string" AirlineVendorID="string" AirportCode="string" FirstDepartPoint="string" ERSP_UserID="string" TerminalID="string">
<RequestorID URL="anyURI" Type="string" Instance="string" ID_Context="string" ID="string">
<CompanyName xsi:nil="true" />
</RequestorID>
<Position Latitude="string" Longitude="string" Altitude="string" />
<BookingChannel>
<CompanyName xsi:nil="true" />
</BookingChannel>
</Source>
<Source AgentSine="string" PseudoCityCode="string" ISOCountry="string" ISOCurrency="string" AgentDutyCode="string" AirlineVendorID="string" AirportCode="string" FirstDepartPoint="string" ERSP_UserID="string" TerminalID="string">
<RequestorID URL="anyURI" Type="string" Instance="string" ID_Context="string" ID="string">
<CompanyName xsi:nil="true" />
</RequestorID>
<Position Latitude="string" Longitude="string" Altitude="string" />
<BookingChannel>
<CompanyName xsi:nil="true" />
</BookingChannel>
</Source>
</POS>
</OTA_HotelAvailRS>
</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 /dispatcher.asmx HTTP/1.1
Host: www.med-hotels.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:Header>
<authentication xmlns="http://xmlota.wspan.com/webservice/">
<userid>string</userid>
<password>string</password>
</authentication>
</soap12:Header>
<soap12:Body>
<OTA_HotelAvailRQ SummaryOnly="boolean" SortOrder="" AvailRatesOnly="boolean" BestOnly="boolean" RateRangeOnly="boolean" ExactMatchOnly="boolean" AllowPartialAvail="boolean" RequestedCurrency="string" IsModify="boolean" MaxResponses="positiveInteger" SearchCacheLevel="" xmlns="http://www.opentravel.org/OTA/2003/05">
<AvailRequestSegments MaximumWaitTime="decimal">
<AvailRequestSegment AvailReqType="" MoreDataEchoToken="string" ResponseType="">
<StayDateRange Start="string" Duration="string" End="string" />
<RateRange CurrencyCode="string" MinRate="decimal" MaxRate="decimal" FixedRate="decimal" />
<RatePlanCandidates>
<RatePlanCandidate xsi:nil="true" />
<RatePlanCandidate xsi:nil="true" />
</RatePlanCandidates>
<Profiles>
<ProfileInfo xsi:nil="true" />
<ProfileInfo xsi:nil="true" />
</Profiles>
<RoomStayCandidates>
<RoomStayCandidate xsi:nil="true" />
<RoomStayCandidate xsi:nil="true" />
</RoomStayCandidates>
<HotelSearchCriteria>
<Criterion xsi:nil="true" />
<Criterion xsi:nil="true" />
</HotelSearchCriteria>
<TPA_Extensions>xml</TPA_Extensions>
</AvailRequestSegment>
<AvailRequestSegment AvailReqType="" MoreDataEchoToken="string" ResponseType="">
<StayDateRange Start="string" Duration="string" End="string" />
<RateRange CurrencyCode="string" MinRate="decimal" MaxRate="decimal" FixedRate="decimal" />
<RatePlanCandidates>
<RatePlanCandidate xsi:nil="true" />
<RatePlanCandidate xsi:nil="true" />
</RatePlanCandidates>
<Profiles>
<ProfileInfo xsi:nil="true" />
<ProfileInfo xsi:nil="true" />
</Profiles>
<RoomStayCandidates>
<RoomStayCandidate xsi:nil="true" />
<RoomStayCandidate xsi:nil="true" />
</RoomStayCandidates>
<HotelSearchCriteria>
<Criterion xsi:nil="true" />
<Criterion xsi:nil="true" />
</HotelSearchCriteria>
<TPA_Extensions>xml</TPA_Extensions>
</AvailRequestSegment>
</AvailRequestSegments>
</OTA_HotelAvailRQ>
</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>
<OTA_HotelAvailRS xmlns="http://www.opentravel.org/OTA/2003/05">
<POS>
<Source AgentSine="string" PseudoCityCode="string" ISOCountry="string" ISOCurrency="string" AgentDutyCode="string" AirlineVendorID="string" AirportCode="string" FirstDepartPoint="string" ERSP_UserID="string" TerminalID="string">
<RequestorID URL="anyURI" Type="string" Instance="string" ID_Context="string" ID="string">
<CompanyName xsi:nil="true" />
</RequestorID>
<Position Latitude="string" Longitude="string" Altitude="string" />
<BookingChannel>
<CompanyName xsi:nil="true" />
</BookingChannel>
</Source>
<Source AgentSine="string" PseudoCityCode="string" ISOCountry="string" ISOCurrency="string" AgentDutyCode="string" AirlineVendorID="string" AirportCode="string" FirstDepartPoint="string" ERSP_UserID="string" TerminalID="string">
<RequestorID URL="anyURI" Type="string" Instance="string" ID_Context="string" ID="string">
<CompanyName xsi:nil="true" />
</RequestorID>
<Position Latitude="string" Longitude="string" Altitude="string" />
<BookingChannel>
<CompanyName xsi:nil="true" />
</BookingChannel>
</Source>
</POS>
</OTA_HotelAvailRS>
</soap12:Body>
</soap12:Envelope>