2016-03-25 7 views
0

空のPNR(必須フィールドのみ)を作成しようとしています。 私はJavaからSoapサービスを使用しています。 CreateSessionRQの後に、少なくとも1人のPersonとチケットタイプ(7TAW)を追加するためにTravelItineraryAddInfoRQを呼び出しています。この呼び出しは成功して終了します。Sabre空のPNRを作成する

次に、OTA_AirBookLLSRQを呼び出して1つのOPENセグメントを作成します。

<soapenv:Body> 
    <ns:OTA_AirBookRQ xmlns:ns="http://webservices.sabre.com/sabreXML/2011/10" Version="2.1.0" TimeStamp="2016-03-24T16:04:05.597+01:00"> 
    <ns:OriginDestinationInformation> 
     <ns:FlightSegment Status="OPEN" NumberInParty="1" ResBookDesigCode="Y"> 
      <ns:DestinationLocation LocationCode="MXP" /> 
      <ns:MarketingAirline Code="AZ" /> 
      <ns:OriginLocation LocationCode="FCO" /> 
     </ns:FlightSegment> 
    </ns:OriginDestinationInformation> 
    </ns:OTA_AirBookRQ> 

応答は次のとおりです。

OTA_AirBookRQサービスのドキュメントで

<stl:ApplicationResults xmlns:stl="http://services.sabre.com/STL/v01" status="NotProcessed"> <stl:Error timeStamp="2016-03-24T10:06:08-05:00" type="Validation"> <stl:SystemSpecificResults> <stl:Message>cvc-complex-type.4: Attribute 'FlightNumber' must appear on element 'ns:FlightSegment'.</stl:Message> <stl:ShortText>ERR.SWS.CLIENT.VALIDATION_FAILED</stl:ShortText> </stl:SystemSpecificResults> </stl:Error> </stl:ApplicationResults>

私はflightNumber "は、ユーザがオープンスペースのチケットを希望する場合はOPENにも渡すことができます。" そして、読み

タグを省略するか、空にすることを試みましたが、フィールドは常に必要です。

私は間違っていますか? はPNRを作成するためのシーケンス正しいです私はセイバーのサンプルで見つけた

答えて

0

事前に

おかげで(OTA_AirBookRQ後、私はEndTransactionRQ、その後CloseSessionRQを呼び出すと仮定):?

<!-- Book an OPEN itinerary. --> 
<OTA_AirBookRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.1.0"> 
<OriginDestinationInformation> 
<FlightSegment DepartureDateTime="2012-12-21T12:00" ArrivalDateTime="2012-12-21T17:00" FlightNumber="OPEN" NumberInParty="2" ResBookDesigCode="Y" Status="DS"> 
<DestinationLocation LocationCode="LAS"/> 
<MarketingAirline Code="AA" FlightNumber="OPEN"/> 
<OperatingAirline Code="AA"/> 
<OriginLocation LocationCode="DFW"/> 
</FlightSegment> 
</OriginDestinationInformation> 
</OTA_AirBookRQ> 

」フイールド番号フィールドに「OPEN」を設定し、ステータスフィールドに「DS」を設定する

関連する問題