I have a sabre to sabre api request in which I need to create the passenger name record without using the passport information . But when I do the request it gives the following error
<TYPE>BusinessLogic</TYPE><TIMESTAMP>2018-06-04T11:32:33.948-05:00</TIMESTAMP><SYSTEMSPECIFICRESULTS><MESSAGE><content>INVALID DATE OF BIRTH - USE DDMMMYY</content><CODE>ERR.SWS.HOST.ERROR_IN_RESPONSE</CODE></MESSAGE></SYSTEMSPECIFICRESULTS>
The date of birth format works fine when I use the passport information while creating the passenger name record . Below is my request sample .
<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="Lorem ipsum"/>
</EndTransactionRQ>
</PostProcessing>
<PriceQuoteInfo xmlns="http://services.sabre.com/sp/pd/v3_3">
<Link NameNumber="1.1" Record="1"/>
<Link NameNumber="2.1" Record="2"/>
<Link NameNumber="3.1" Record="3"/>
</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="1996-02-23" Gender="M" NameNumber="1.1">
<GivenName>Edna</GivenName>
<Surname>Lindsey</Surname>
</PersonName>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</SecureFlight>
<SecureFlight SegmentNumber="A">
<PersonName DateOfBirth="2015-08-14" Gender="F" NameNumber="2.1">
<GivenName>Ada</GivenName>
<Surname>Hughes</Surname>
</PersonName>
</SecureFlight>
<SecureFlight SegmentNumber="A">
<PersonName DateOfBirth="2017-04-11" Gender="M" NameNumber="3.1">
<GivenName>Lena</GivenName>
<Surname>Pope</Surname>
</PersonName>
</SecureFlight>
<Service SegmentNumber="A" SSR_Code="CHLD">
<PersonName NameNumber="2.1"/>
<Text>Hughes/Ada/14AUG15</Text>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</Service>
<Service SegmentNumber="A" SSR_Code="INFT">
<PersonName NameNumber="1.1"/>
<Text>Pope/Lena/11APR17</Text>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</Service>
<Service SSR_Code="OSI">
<PersonName NameNumber="1.1"/>
<Text>ID CARD Number 223341</Text>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</Service>
<Service SSR_Code="OSI">
<PersonName NameNumber="2.1"/>
<Text>ID CARD Number 2211</Text>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</Service>
<Service SSR_Code="OSI">
<PersonName NameNumber="3.1"/>
<Text>ID CARD Number 223343</Text>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</Service>
</SpecialServiceInfo>
</SpecialServiceRQ>
</SpecialReqDetails>
<TravelItineraryAddInfoRQ xmlns="http://services.sabre.com/sp/pd/v3_3">
<AgencyInfo>
<Address>
<AddressLine>HIMAL REISEN</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="4118125712" PhoneUseType="H"/>
</ContactNumbers>
<Email Address="zowo@host.test" NameNumber="1.1"/>
<PersonName NameNumber="1.1" Infant="false" PassengerType="ADT">
<GivenName>Edna</GivenName>
<Surname>Lindsey</Surname>
</PersonName>
<PersonName NameNumber="2.1" Infant="false" PassengerType="CNN" NameReference="C02">
<GivenName>Ada</GivenName>
<Surname>Hughes</Surname>
</PersonName>
<PersonName NameNumber="3.1" Infant="true" PassengerType="INF" NameReference="I13">
<GivenName>Lena</GivenName>
<Surname>Pope</Surname>
</PersonName>
</CustomerInfo>
</TravelItineraryAddInfoRQ>
</PassengerDetailsRQ>
Can anyone help me with this problem . Thanks in advance .
答案 0 :(得分:2)
除了您已获得的请求之外,该请求还有其他2个问题,所有问题都在 SpecialServiceInfo 元素中。
1.您获得的那个,无效的出生日期 - 使用DDMMMYY,是因为 Text 元素包含SSR_Code =&#34; CHLD&#34;所不具备的信息。它应该只包含出生日期而不是名称,所以 14AUG15 而不是 Hughes / Ada / 14AUG15 。
<Service SegmentNumber="A" SSR_Code="CHLD">
<PersonName NameNumber="2.1"/>
<Text>Hughes/Ada/14AUG15</Text>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</Service>
2. SSR_Code =&#34; OSI&#34; 和 SecureFlight 无法分配给婴儿 NameNumber =&#34; 3.1& #34; ,应将它们分配给成人 NameNumber =&#34; 1.1&#34; 。这将返回类似的内容:无法控制姓名
<Service SSR_Code="OSI">
<PersonName NameNumber="3.1"/>
<Text>ID CARD Number 223343</Text>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</Service>
3.对于婴儿,编码应该是MI和FI,而不是M和F.
<SecureFlight SegmentNumber="A">
<PersonName DateOfBirth="2017-04-11" Gender="M" NameNumber="3.1">
<GivenName>Lena</GivenName>
<Surname>Pope</Surname>
</PersonName>
</SecureFlight>
您可以查看格式查找器以获取更多信息: