wsReservation
Click here for a complete list of operations.
CreateB2BReservation
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 /ResService/wsReservation.asmx HTTP/1.1 Host: tsuiteservice.it.ws.travelexplorer.com.br Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://ws.travelsuite.com.br/CreateB2BReservation" <?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> <CreateB2BReservation xmlns="http://ws.travelsuite.com.br"> <ContractId>int</ContractId> <AgencyReference> <B2BCustomerId>int</B2BCustomerId> <AgencyRef>string</AgencyRef> <AgencyName>string</AgencyName> <AgencyEmail>string</AgencyEmail> <Phone1>string</Phone1> <B2CCustomerId>int</B2CCustomerId> <AgentName>string</AgentName> <AgentRef>string</AgentRef> <AgentEmail>string</AgentEmail> <Address>string</Address> <City>string</City> <Country>string</Country> <DocNumber1>string</DocNumber1> <DocType1>CPF or RG or CNPJ</DocType1> <DocNumber2>string</DocNumber2> <Phone2>string</Phone2> <DocType2>CPF or RG or CNPJ</DocType2> <Comment>string</Comment> <Nationality>string</Nationality> <Office>string</Office> <ISB2B>int</ISB2B> </AgencyReference> <PaxReference> <PaxData> <PaxType>ADT or CNN or INF or SNR</PaxType> <FirstName>string</FirstName> <LastName>string</LastName> <Age>short</Age> <Phone>string</Phone> <Email>string</Email> <Doc>string</Doc> <DocExpDate>dateTime</DocExpDate> <DocCountry>string</DocCountry> <Fidelity>string</Fidelity> <FidelityExpDate>dateTime</FidelityExpDate> <FidelityDob>dateTime</FidelityDob> <BornDate>dateTime</BornDate> <Sex>string</Sex> <RedressNumber>string</RedressNumber> <Nationality>string</Nationality> <FullName>string</FullName> <Passport>string</Passport> <PassportValidity>dateTime</PassportValidity> <PassportName>string</PassportName> </PaxData> <PaxData> <PaxType>ADT or CNN or INF or SNR</PaxType> <FirstName>string</FirstName> <LastName>string</LastName> <Age>short</Age> <Phone>string</Phone> <Email>string</Email> <Doc>string</Doc> <DocExpDate>dateTime</DocExpDate> <DocCountry>string</DocCountry> <Fidelity>string</Fidelity> <FidelityExpDate>dateTime</FidelityExpDate> <FidelityDob>dateTime</FidelityDob> <BornDate>dateTime</BornDate> <Sex>string</Sex> <RedressNumber>string</RedressNumber> <Nationality>string</Nationality> <FullName>string</FullName> <Passport>string</Passport> <PassportValidity>dateTime</PassportValidity> <PassportName>string</PassportName> </PaxData> </PaxReference> <Language>pt_BR or es_ES or en_US or Default</Language> <Currency>string</Currency> <IsPackage>boolean</IsPackage> </CreateB2BReservation> </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> <CreateB2BReservationResponse xmlns="http://ws.travelsuite.com.br"> <CreateB2BReservationResult>long</CreateB2BReservationResult> </CreateB2BReservationResponse> </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 /ResService/wsReservation.asmx HTTP/1.1 Host: tsuiteservice.it.ws.travelexplorer.com.br 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> <CreateB2BReservation xmlns="http://ws.travelsuite.com.br"> <ContractId>int</ContractId> <AgencyReference> <B2BCustomerId>int</B2BCustomerId> <AgencyRef>string</AgencyRef> <AgencyName>string</AgencyName> <AgencyEmail>string</AgencyEmail> <Phone1>string</Phone1> <B2CCustomerId>int</B2CCustomerId> <AgentName>string</AgentName> <AgentRef>string</AgentRef> <AgentEmail>string</AgentEmail> <Address>string</Address> <City>string</City> <Country>string</Country> <DocNumber1>string</DocNumber1> <DocType1>CPF or RG or CNPJ</DocType1> <DocNumber2>string</DocNumber2> <Phone2>string</Phone2> <DocType2>CPF or RG or CNPJ</DocType2> <Comment>string</Comment> <Nationality>string</Nationality> <Office>string</Office> <ISB2B>int</ISB2B> </AgencyReference> <PaxReference> <PaxData> <PaxType>ADT or CNN or INF or SNR</PaxType> <FirstName>string</FirstName> <LastName>string</LastName> <Age>short</Age> <Phone>string</Phone> <Email>string</Email> <Doc>string</Doc> <DocExpDate>dateTime</DocExpDate> <DocCountry>string</DocCountry> <Fidelity>string</Fidelity> <FidelityExpDate>dateTime</FidelityExpDate> <FidelityDob>dateTime</FidelityDob> <BornDate>dateTime</BornDate> <Sex>string</Sex> <RedressNumber>string</RedressNumber> <Nationality>string</Nationality> <FullName>string</FullName> <Passport>string</Passport> <PassportValidity>dateTime</PassportValidity> <PassportName>string</PassportName> </PaxData> <PaxData> <PaxType>ADT or CNN or INF or SNR</PaxType> <FirstName>string</FirstName> <LastName>string</LastName> <Age>short</Age> <Phone>string</Phone> <Email>string</Email> <Doc>string</Doc> <DocExpDate>dateTime</DocExpDate> <DocCountry>string</DocCountry> <Fidelity>string</Fidelity> <FidelityExpDate>dateTime</FidelityExpDate> <FidelityDob>dateTime</FidelityDob> <BornDate>dateTime</BornDate> <Sex>string</Sex> <RedressNumber>string</RedressNumber> <Nationality>string</Nationality> <FullName>string</FullName> <Passport>string</Passport> <PassportValidity>dateTime</PassportValidity> <PassportName>string</PassportName> </PaxData> </PaxReference> <Language>pt_BR or es_ES or en_US or Default</Language> <Currency>string</Currency> <IsPackage>boolean</IsPackage> </CreateB2BReservation> </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> <CreateB2BReservationResponse xmlns="http://ws.travelsuite.com.br"> <CreateB2BReservationResult>long</CreateB2BReservationResult> </CreateB2BReservationResponse> </soap12:Body> </soap12:Envelope>