1. Session 생성 요청
1 2 3 4 5 6 7 8 9 10 |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ter="http://www.travelport.com/schema/terminal_v33_0" xmlns:com="http://www.travelport.com/schema/common_v33_0"> <soapenv:Header/> <soapenv:Body> <ter:CreateTerminalSessionReq AuthorizedBy="user" TargetBranch="P2222222" RetrieveProviderReservationDetails="false" Host="1P"> <com:BillingPointOfSaleInfo OriginApplication="UAPI"/> </ter:CreateTerminalSessionReq> </soapenv:Body> </soapenv:Envelope> |
1 2 3 4 5 6 7 8 9 |
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <terminal:CreateTerminalSessionRsp TransactionId="F09BDDA90A074256388E12B2A31AF2F4" ResponseTime="69" xmlns:terminal="http://www.travelport.com/schema/terminal_v33_0"> <common_v33_0:HostToken Host="1P" xmlns:common_v33_0="http://www.travelport.com/schema/common_v33_0">ID280-f62cba7a-01c0-45a5-9dc4-e2c611af37e3</common_v33_0:HostToken> </terminal:CreateTerminalSessionRsp> </SOAP:Body> </SOAP:Envelope> |
Response => Session 값이 옵니다. ID280-f62cba7a-01c0-45a5-9dc4-e2c611af37e3
2.세션이 연결되면 ID280-f62cba7a-01c0-45a5-9dc4-e2c611af37e3 CRS 명령어를 전송 할 수 있습니다. (Session 유효시간은 2분 정도)
1 2 3 4 5 6 7 8 9 10 11 12 |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ter="http://www.travelport.com/schema/terminal_v33_0" xmlns:com="http://www.travelport.com/schema/common_v33_0"> <soapenv:Header/> <soapenv:Body> <ter:TerminalReq AuthorizedBy="user" TargetBranch="P2222222" RetrieveProviderReservationDetails="false"> <com:BillingPointOfSaleInfo OriginApplication="UAPI"/> <com:HostToken Host="1P">ID280-f62cba7a-01c0-45a5-9dc4-e2c611af37e3</com:HostToken> <ter:TerminalCommand>*NZ8EFR</ter:TerminalCommand> </ter:TerminalReq> </soapenv:Body> </soapenv:Envelope> |
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <terminal:TerminalRsp TransactionId="9D6375720A07425CCE5043D91736D956" ResponseTime="69" xmlns:terminal="http://www.travelport.com/schema/terminal_v33_0"> <terminal:TerminalCommandResponse> <terminal:Text>1P- NZ8EFR</terminal:Text> <terminal:Text>1.1KIM/SUMIMS*ADT</terminal:Text> <terminal:Text>1 KE 603E 11NOV FR ICNHKG HK1 0825 1120 /O $ E</terminal:Text> <terminal:Text>2 KE 604E 15NOV TU HKGICN HK1 1235 1700 /O $ E</terminal:Text> <terminal:Text>P- 1.LHC02-122-1222 WORLD TRAVEL *</terminal:Text> <terminal:Text>T- 1.T/07OCT1256 1P/LHC/EM*E1809010263231 *I</terminal:Text> <terminal:Text>TKG FAX-AUTO PRICED FARE TYPE EX</terminal:Text> <terminal:Text>G- 1.SSROTHS1PKERSVN IS 6524-7352</terminal:Text> <terminal:Text>2.SSRADTK1PTOKE BY 21OCT 1900 TYO OTHERWISE WILL BE XLD</terminal:Text> <terminal:Text>3.SSRTKNEKEHK1ICNHKG0603E11NOV- 1.1 .1809010263231C1</terminal:Text> <terminal:Text>4.SSRTKNEKEHK1HKGICN0604E15NOV- 1.1 .1809010263231C2</terminal:Text> <terminal:Text>5.SSROTHS1PCHECK SPECIAL MEAL AND ADVANCE SEATING</terminal:Text> <terminal:Text>6.SSROTHS1PECONOMY CLS ASP AVBL WITHIN 361DAYS FOR TKTD PAX</terminal:Text> <terminal:Text>**** ITEMS SUPPRESSED ****/DH/ETA/DR</terminal:Text> </terminal:TerminalCommandResponse> </terminal:TerminalRsp> </SOAP:Body> </SOAP:Envelope> |
3. 명령어를 사용이 끝나면 Session 을 닫아 줍니다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ter="http://www.travelport.com/schema/terminal_v33_0" xmlns:com="http://www.travelport.com/schema/common_v33_0"> <soapenv:Header/> <soapenv:Body> <ter:EndTerminalSessionReq AuthorizedBy="user" TargetBranch="????????" RetrieveProviderReservationDetails="false" Host='1P'> <com:BillingPointOfSaleInfo OriginApplication="UAPI"/> <com:HostToken Host='1P'>ID454-bc9d0bda-9a59-445a-b3df-126c5580ca60</com:HostToken> <!--Optional:--> </ter:EndTerminalSessionReq> </soapenv:Body> </soapenv:Envelope> |