OTA
Haga clic aquí para obtener una lista completa de operaciones.
SendReservation
Prueba
El formulario de prueba sólo está disponible para solicitudes del equipo local.SOAP 1.1
A continuación se muestra un ejemplo de solicitud y respuesta para SOAP 1.1. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.
POST /webservice/WSOTAPush.asmx HTTP/1.1 Host: app.guest-hotelsoftware.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://cgbridge.rategain.com/2011A/ReservationService/HotelResNotif" <?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> <Action d3p1:mustUnderstand="boolean" xmlns:d3p1="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing" /> <MessageID xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing" /> <ReplyTo xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <Address /> </ReplyTo> <Security d3p1:mustUnderstand="boolean" xmlns:d3p1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <d3p1:UsernameToken d3p1:Id="string"> <d3p1:Username>string</d3p1:Username> <d3p1:Password>string</d3p1:Password> </d3p1:UsernameToken> <d3p1:UsernameToken d3p1:Id="string"> <d3p1:Username>string</d3p1:Username> <d3p1:Password>string</d3p1:Password> </d3p1:UsernameToken> </Security> <To d3p1:mustUnderstand="boolean" xmlns:d3p1="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing" /> </soap:Header> <soap:Body> <OTA_HotelResNotifRQ EchoToken="string" TimeStamp="dateTime" Target="" TargetName="string" Version="decimal" TransactionIdentifier="string" SequenceNmbr="nonNegativeInteger" TransactionStatusCode="" RetransmissionIndicator="boolean" CorrelationID="string" PrimaryLangID="language" AltLangID="language" ResStatus="Book or Quote or Hold or Initiate or Ignore or Modify or Commit or Cancel or CommitOverrideEdits or VerifyPrice or Ticket" HoldDuration="duration" 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 MessagePassword="string" Name="string" /> <Position Latitude="string" Longitude="string" Altitude="string" AltitudeUnitOfMeasureCode="string" PositionAccuracyCode="string" /> <BookingChannel Type="string" Primary="boolean"> <CompanyName xsi:nil="true" /> <TPA_Extensions xsi:nil="true" /> </BookingChannel> <TPA_Extensions>xml</TPA_Extensions> </Source> <Source AgentSine="string" PseudoCityCode="string" ISOCountry="string" ISOCurrency="string" AgentDutyCode="string" AirlineVendorID="string" AirportCode="string" FirstDepartPoint="string" ERSP_UserID="string" TerminalID="string"> <RequestorID MessagePassword="string" Name="string" /> <Position Latitude="string" Longitude="string" Altitude="string" AltitudeUnitOfMeasureCode="string" PositionAccuracyCode="string" /> <BookingChannel Type="string" Primary="boolean"> <CompanyName xsi:nil="true" /> <TPA_Extensions xsi:nil="true" /> </BookingChannel> <TPA_Extensions>xml</TPA_Extensions> </Source> </POS> <MessageID URL="anyURI" Type="string" Instance="string" ID="string" ID_Context="string"> <CompanyName CompanyShortName="string" TravelSector="string" Code="string" CodeContext="string" CountryCode="string" Division="string" Department="string" /> <TPA_Extensions>xml</TPA_Extensions> </MessageID> <HotelReservations> <HotelReservation> <RebatePrograms> <RebateProgram xsi:nil="true" /> <RebateProgram xsi:nil="true" /> </RebatePrograms> </HotelReservation> <HotelReservation> <RebatePrograms> <RebateProgram xsi:nil="true" /> <RebateProgram xsi:nil="true" /> </RebatePrograms> </HotelReservation> <RoutingHops> <RoutingHop SystemCode="string" LocalRefID="string" TimeStamp="dateTime" Comment="string" SequenceNmbr="integer" Data="string" /> <RoutingHop SystemCode="string" LocalRefID="string" TimeStamp="dateTime" Comment="string" SequenceNmbr="integer" Data="string" /> </RoutingHops> <WrittenConfInst LanguageID="string" AddresseeName="string" Address="string" Telephone="string" ConfirmInd="boolean"> <SupplementalData Name="string" ParagraphNumber="nonNegativeInteger" CreateDateTime="dateTime" CreatorID="string" LastModifyDateTime="dateTime" LastModifierID="string" PurgeDate="date" Language="language" /> <Email ShareSynchInd="" ShareMarketInd="" DefaultInd="boolean" EmailType="string" RPH="string" Remark="string" ValidInd="boolean" TextFormat="" /> <TPA_Extensions>xml</TPA_Extensions> </WrittenConfInst> <TPA_Extensions>xml</TPA_Extensions> </HotelReservations> </OTA_HotelResNotifRQ> </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_HotelResNotifRS EchoToken="string" TimeStamp="dateTime" Target="" TargetName="string" Version="decimal" TransactionIdentifier="string" SequenceNmbr="nonNegativeInteger" TransactionStatusCode="" RetransmissionIndicator="boolean" CorrelationID="string" PrimaryLangID="language" AltLangID="language" ResResponseType="Pending or Cancelled or Modified or Committed or Ignored or OnHold or Unsuccessful or PendingCancellation or PendingPurchase or Requested or Reserved or Unchanged or RequestDenied or Ticketed" 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 MessagePassword="string" Name="string" /> <Position Latitude="string" Longitude="string" Altitude="string" AltitudeUnitOfMeasureCode="string" PositionAccuracyCode="string" /> <BookingChannel Type="string" Primary="boolean"> <CompanyName xsi:nil="true" /> <TPA_Extensions xsi:nil="true" /> </BookingChannel> <TPA_Extensions>xml</TPA_Extensions> </Source> <Source AgentSine="string" PseudoCityCode="string" ISOCountry="string" ISOCurrency="string" AgentDutyCode="string" AirlineVendorID="string" AirportCode="string" FirstDepartPoint="string" ERSP_UserID="string" TerminalID="string"> <RequestorID MessagePassword="string" Name="string" /> <Position Latitude="string" Longitude="string" Altitude="string" AltitudeUnitOfMeasureCode="string" PositionAccuracyCode="string" /> <BookingChannel Type="string" Primary="boolean"> <CompanyName xsi:nil="true" /> <TPA_Extensions xsi:nil="true" /> </BookingChannel> <TPA_Extensions>xml</TPA_Extensions> </Source> </POS> </OTA_HotelResNotifRS> </soap:Body> </soap:Envelope>
SOAP 1.2
A continuación se muestra un ejemplo de solicitud y respuesta para SOAP 1.2. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.
POST /webservice/WSOTAPush.asmx HTTP/1.1 Host: app.guest-hotelsoftware.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> <Action d3p1:mustUnderstand="boolean" xmlns:d3p1="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing" /> <MessageID xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing" /> <ReplyTo xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <Address /> </ReplyTo> <Security d3p1:mustUnderstand="boolean" xmlns:d3p1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <d3p1:UsernameToken d3p1:Id="string"> <d3p1:Username>string</d3p1:Username> <d3p1:Password>string</d3p1:Password> </d3p1:UsernameToken> <d3p1:UsernameToken d3p1:Id="string"> <d3p1:Username>string</d3p1:Username> <d3p1:Password>string</d3p1:Password> </d3p1:UsernameToken> </Security> <To d3p1:mustUnderstand="boolean" xmlns:d3p1="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing" /> </soap12:Header> <soap12:Body> <OTA_HotelResNotifRQ EchoToken="string" TimeStamp="dateTime" Target="" TargetName="string" Version="decimal" TransactionIdentifier="string" SequenceNmbr="nonNegativeInteger" TransactionStatusCode="" RetransmissionIndicator="boolean" CorrelationID="string" PrimaryLangID="language" AltLangID="language" ResStatus="Book or Quote or Hold or Initiate or Ignore or Modify or Commit or Cancel or CommitOverrideEdits or VerifyPrice or Ticket" HoldDuration="duration" 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 MessagePassword="string" Name="string" /> <Position Latitude="string" Longitude="string" Altitude="string" AltitudeUnitOfMeasureCode="string" PositionAccuracyCode="string" /> <BookingChannel Type="string" Primary="boolean"> <CompanyName xsi:nil="true" /> <TPA_Extensions xsi:nil="true" /> </BookingChannel> <TPA_Extensions>xml</TPA_Extensions> </Source> <Source AgentSine="string" PseudoCityCode="string" ISOCountry="string" ISOCurrency="string" AgentDutyCode="string" AirlineVendorID="string" AirportCode="string" FirstDepartPoint="string" ERSP_UserID="string" TerminalID="string"> <RequestorID MessagePassword="string" Name="string" /> <Position Latitude="string" Longitude="string" Altitude="string" AltitudeUnitOfMeasureCode="string" PositionAccuracyCode="string" /> <BookingChannel Type="string" Primary="boolean"> <CompanyName xsi:nil="true" /> <TPA_Extensions xsi:nil="true" /> </BookingChannel> <TPA_Extensions>xml</TPA_Extensions> </Source> </POS> <MessageID URL="anyURI" Type="string" Instance="string" ID="string" ID_Context="string"> <CompanyName CompanyShortName="string" TravelSector="string" Code="string" CodeContext="string" CountryCode="string" Division="string" Department="string" /> <TPA_Extensions>xml</TPA_Extensions> </MessageID> <HotelReservations> <HotelReservation> <RebatePrograms> <RebateProgram xsi:nil="true" /> <RebateProgram xsi:nil="true" /> </RebatePrograms> </HotelReservation> <HotelReservation> <RebatePrograms> <RebateProgram xsi:nil="true" /> <RebateProgram xsi:nil="true" /> </RebatePrograms> </HotelReservation> <RoutingHops> <RoutingHop SystemCode="string" LocalRefID="string" TimeStamp="dateTime" Comment="string" SequenceNmbr="integer" Data="string" /> <RoutingHop SystemCode="string" LocalRefID="string" TimeStamp="dateTime" Comment="string" SequenceNmbr="integer" Data="string" /> </RoutingHops> <WrittenConfInst LanguageID="string" AddresseeName="string" Address="string" Telephone="string" ConfirmInd="boolean"> <SupplementalData Name="string" ParagraphNumber="nonNegativeInteger" CreateDateTime="dateTime" CreatorID="string" LastModifyDateTime="dateTime" LastModifierID="string" PurgeDate="date" Language="language" /> <Email ShareSynchInd="" ShareMarketInd="" DefaultInd="boolean" EmailType="string" RPH="string" Remark="string" ValidInd="boolean" TextFormat="" /> <TPA_Extensions>xml</TPA_Extensions> </WrittenConfInst> <TPA_Extensions>xml</TPA_Extensions> </HotelReservations> </OTA_HotelResNotifRQ> </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_HotelResNotifRS EchoToken="string" TimeStamp="dateTime" Target="" TargetName="string" Version="decimal" TransactionIdentifier="string" SequenceNmbr="nonNegativeInteger" TransactionStatusCode="" RetransmissionIndicator="boolean" CorrelationID="string" PrimaryLangID="language" AltLangID="language" ResResponseType="Pending or Cancelled or Modified or Committed or Ignored or OnHold or Unsuccessful or PendingCancellation or PendingPurchase or Requested or Reserved or Unchanged or RequestDenied or Ticketed" 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 MessagePassword="string" Name="string" /> <Position Latitude="string" Longitude="string" Altitude="string" AltitudeUnitOfMeasureCode="string" PositionAccuracyCode="string" /> <BookingChannel Type="string" Primary="boolean"> <CompanyName xsi:nil="true" /> <TPA_Extensions xsi:nil="true" /> </BookingChannel> <TPA_Extensions>xml</TPA_Extensions> </Source> <Source AgentSine="string" PseudoCityCode="string" ISOCountry="string" ISOCurrency="string" AgentDutyCode="string" AirlineVendorID="string" AirportCode="string" FirstDepartPoint="string" ERSP_UserID="string" TerminalID="string"> <RequestorID MessagePassword="string" Name="string" /> <Position Latitude="string" Longitude="string" Altitude="string" AltitudeUnitOfMeasureCode="string" PositionAccuracyCode="string" /> <BookingChannel Type="string" Primary="boolean"> <CompanyName xsi:nil="true" /> <TPA_Extensions xsi:nil="true" /> </BookingChannel> <TPA_Extensions>xml</TPA_Extensions> </Source> </POS> </OTA_HotelResNotifRS> </soap12:Body> </soap12:Envelope>