AirLowFareSearchRQ 不再工作了?

AirLowFareSearchRQ not working anymore?

我从今天早上开始就无法获得查询结果。其他人有同样的错误吗?

不知何故,该版本已被弃用,将被新版本取代。但我不记得我收到过有关此升级的任何通知。 :/

感谢您的帮助。

要求:

<OTA_AirLowFareSearchRQ PrimaryLangID="fr" Version="1.4.0" xmlns="http://www.opentravel.org/OTA/2003/05">
 <POS>
  <Source PseudoCityCode="9TB9">
   <RequestorID ID="1" Type="1">
     <CompanyName Code="##">####</CompanyName>
   </RequestorID>
  </Source>
 </POS>
 <OriginDestinationInformation RPH="1">
  <DepartureDateTime>2017-05-13T13:00:00</DepartureDateTime>
  <DepartureWindow>11001500</DepartureWindow>
  <OriginLocation LocationCode="NCE"/>
  <DestinationLocation LocationCode="PAR"/>
  <TPA_Extensions>
   <SegmentType Code="O"/>
  </TPA_Extensions>
 </OriginDestinationInformation>
 <TravelPreferences MaxStopsQuantity="2"/>
  <TravelerInfoSummary>
   <SeatsRequested>1</SeatsRequested>
   <AirTravelerAvail>
    <PassengerTypeQuantity Code="ITX" Quantity="1"/>
   </AirTravelerAvail>
   <PriceRequestInformation CurrencyCode="EUR">
    <TPA_Extensions>
     <PublicFare Ind="false"/>
     <PrivateFare Ind="true"/>
     <Priority>
       <Price Priority="1"/>
       <DirectFlights Priority="2"/>
       <Time Priority="3"/>
       <Vendor Priority="4"/>
     </Priority>
   </TPA_Extensions>
  </PriceRequestInformation>
 </TravelerInfoSummary>
 <TPA_Extensions>
  <IntelliSellTransaction>
   <RequestType Name="100ITINS"/>
  </IntelliSellTransaction>
 </TPA_Extensions>
</OTA_AirLowFareSearchRQ>

回复:

<OTA_AirLowFareSearchRS Version="1.4.0" PricedItinCount="0" BrandedOneWayItinCount="0" SimpleOneWayItinCount="0" DepartedItinCount="0" SoldOutItinCount="0" AvailableItinCount="0" xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <Errors>
  <Error Type="SCHEDULES" Code="PROCESS" ShortText="Communication error code=104: Connection reset by peer"/>
  <Error Type="IF2" Code="PROCESS" ShortText="No complete journey can be built in IF2/ADVJR1."/>
  <Error Type="MAIN" Code="DEPRECATEDRS" ShortText="This response version is deprecated and will be decommissioned once two newer versions are released."/>
  <Error Type="WORKERTHREAD" Code="TRANSACTIONID" MessageClass="I" ShortText="3418533871368693570"/>
  <Error Type="SERVER" Code="TTFHLP683" MessageClass="I" ShortText="27042"/>
  <Error Type="DEFAULT" Code="RULEID" MessageClass="I" ShortText="18561"/>
  <Error Type="DRE" Code="RULEID" MessageClass="I" ShortText="15957"/>
  <Error Type="SCHEDULES" Code="MSG" MessageClass="I" ShortText="NO FLIGHT SCHEDULES FOR QUALIFIERS USED"/>
  <Error Type="ERR" Code="ERR" ShortText="Error during Processing"/>
 </Errors>
</OTA_AirLowFareSearchRS>

好的,它现在又能正常工作了,所以你可以认为这个问题已经解决了!

如果您直接使用来自 github 的代码,请确保将代码更改为 BargainFinderMaxSoapActivity class 的 getRequest 方法。他们确实对日期时间和位置进行了硬编码。所以它没有拿起你正在喂的表格。