Saber Bargain Finder Max Soap API - PullRequest
       7

Saber Bargain Finder Max Soap API

0 голосов
/ 04 января 2019

Я новичок в мыле.Я импортирую этот ответ в поиске сделки Sabre Api Макс.Мне нужна помощь по выполнению этого запроса в post curl php.И этот ответ конвертируется в формат json после запроса post curl.

Как запустить php curl для этого запроса.

$soap_req = '
            <OTA_AirLowFareSearchRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="4.3.0">
               <POS>
                  <Source PseudoCityCode="PCC">
                     <RequestorID ID="1" Type="1">
                        <CompanyName Code="TN">TN</CompanyName>
                     </RequestorID>
                  </Source>
               </POS>
               <OriginDestinationInformation RPH="1">
                  <DepartureDateTime>2019-01-09T00:00:00</DepartureDateTime>
                  <OriginLocation LocationCode="SLC"/>
                  <DestinationLocation LocationCode="LAX"/>
                  <TPA_Extensions>
                     <SegmentType Code="O"/>
                  </TPA_Extensions>
               </OriginDestinationInformation>
               <OriginDestinationInformation RPH="2">
                  <DepartureDateTime>2019-01-10T00:00:00</DepartureDateTime>
                  <OriginLocation LocationCode="SFO"/>
                  <DestinationLocation LocationCode="LAS"/>
                  <TPA_Extensions>
                     <SegmentType Code="O"/>
                  </TPA_Extensions>
               </OriginDestinationInformation>
               <TravelPreferences>
                  <CabinPref Cabin="Y" PreferLevel="Preferred"/>
                  <TPA_Extensions>
                     <TripType Value="OpenJaw"/>
                  </TPA_Extensions>
               </TravelPreferences>
               <TravelerInfoSummary>
                  <SeatsRequested>1</SeatsRequested>
                  <AirTravelerAvail>
                     <PassengerTypeQuantity Code="ADT" Quantity="1"/>
                  </AirTravelerAvail>
               </TravelerInfoSummary>
               <TPA_Extensions>
                  <IntelliSellTransaction>
                     <RequestType Name="50ITINS"/>
                  </IntelliSellTransaction>
               </TPA_Extensions>
            </OTA_AirLowFareSearchRQ>
            ';
...