我正在研究佩剑的PassengerDetailsRQ api。问题是我在为2名成人创建PNR时遇到了业务错误。肥皂请求格式如下。它适用于1名成年人,但我不知道是什么原因造成两个成年人样本中的错误。
<PassengerDetailsRQ xmlns="http://services.sabre.com/sp/pd/v3_3" version="3.3.0" IgnoreOnError="true" HaltOnError="true">
<PostProcessing IgnoreAfter="true" RedisplayReservation="true">
<EndTransactionRQ>
<EndTransaction Ind="true"/>
<Source ReceivedFrom="Admin"/>
</EndTransactionRQ>
</PostProcessing>
<PriceQuoteInfo xmlns="http://services.sabre.com/sp/pd/v3_3">
<Link NameNumber="1.1" Record="1"/>
<Link NameNumber="1.2" Record="1"/>
</PriceQuoteInfo>
<SpecialReqDetails xmlns="http://services.sabre.com/sp/pd/v3_3">
<AddRemarkRQ>
<RemarkInfo>
<FOP_Remark Type="CASH"/>
</RemarkInfo>
</AddRemarkRQ>
<SpecialServiceRQ>
<SpecialServiceInfo>
<SecureFlight SegmentNumber="A">
<PersonName DateOfBirth="1960-10-01" Gender="M" NameNumber="1.1">
<GivenName>Katharine</GivenName>
<Surname>Larson</Surname>
</PersonName>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</SecureFlight>
<SecureFlight SegmentNumber="A">
<PersonName DateOfBirth="1941-07-01" Gender="F" NameNumber="1.2">
<GivenName>Olive</GivenName>
<Surname>Robertson</Surname>
</PersonName>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</SecureFlight>
</SpecialServiceInfo>
</SpecialServiceRQ>
</SpecialReqDetails>
<TravelItineraryAddInfoRQ xmlns="http://services.sabre.com/sp/pd/v3_3">
<AgencyInfo>
<Address>
<AddressLine>Lorem Ipsum</AddressLine>
<CityName>Kathmandu</CityName>
<CountryCode>NP</CountryCode>
<PostalCode>00977</PostalCode>
<StreetNmbr>12</StreetNmbr>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</Address>
<Ticketing TicketType="7TAW"/>
</AgencyInfo>
<CustomerInfo>
<ContactNumbers>
<ContactNumber NameNumber="1.1" Phone="7704372953" PhoneUseType="H"/>
</ContactNumbers>
<Email Address="ci@example.com" NameNumber="1.1"/>
<PersonName NameNumber="1.1" Infant="false" PassengerType="ADT">
<GivenName>Katharine</GivenName>
<Surname>Larson</Surname>
</PersonName>
<PersonName NameNumber="1.2" Infant="false" PassengerType="ADT">
<GivenName>Olive</GivenName>
<Surname>Robertson</Surname>
</PersonName>
</CustomerInfo>
</TravelItineraryAddInfoRQ>
我得到的错误如下:
<TYPE>BusinessLogic</TYPE>
<TIMESTAMP>2018-03-24T08:13:43.622-05:00</TIMESTAMP>
<SYSTEMSPECIFICRESULTS>
<MESSAGE>
<content>.NAME NUMBER 1.2 INVALID</content>
<CODE>
ERR.SWS.HOST.ERROR_IN_RESPONSE</CODE></MESSAGE>
</SYSTEMSPECIFICRESULTS>
我没有看到任何错误。增强的航空书请求给出了成功状态,但是创建pnr会给出此错误。任何帮助都将得到满足
答案 0 :(得分:2)
在同一顶级号码中,您不能让2名乘客拥有不同的姓氏,即1.x。
将1.2替换为2.1