Saber特价搜寻器Max Soap API

时间:2019-01-04 07:04:51

标签: soap sabre

我是肥皂新手。 我正在Sabre API特价查找器max中导入此响应。 我需要在post curl php中运行此请求的帮助。 而此响应在post curl请求后转换为json格式。

如何为此请求启动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>
            ';

0 个答案:

没有答案