军刀资料搜索-使用EPS_ProfileSearchService收集与给定公司资料相关的所有旅行者资料

时间:2018-12-26 22:34:04

标签: c# soap sabre

我正在尝试在Sabre个人资料中收集与给定公司级别关联(CRP)相关的旅行者(TPL)的所有TPA身份数据的列表。虽然我可以拉回给定PCC的所有TPA标识,但是当应用关联过滤器时,我无法获得返回任何结果的服务。我的请求在下面(删除了一些识别数据)-我使用的搜索限定词是否正确?

对于给定的相关公司,我知道有17个与我正在传递的公司名称相关的“旅行者级别”个人资料,因为在“ Sabre Red”中可以看到它们。

请求:

<?xml version="1.0" encoding="utf-16"?>
<Sabre_OTA_ProfileSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="6.46" ReturnPaymentCardToken="Y">
  <ProfileSearchCriteria ProfileNameOnly="Y" PageNumber="1" ReturnCount="250" xmlns="http://www.sabre.com/eps/schemas">
    <TPA_Identity ProfileTypeCode="TVL" ClientCode="TN" ClientContextCode="TMP" ProfileName="*" DomainID="PCC1" />
    <CustomerReferenceInfo />
    <AssociatedProfiles AssocProfileName="Corporate Company Name" DomainID="PCC1" />
  </ProfileSearchCriteria>
</Sabre_OTA_ProfileSearchRQ>

响应:

<Sabre_OTA_ProfileSearchRS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TimeStamp="2018-12-24T20:16:07.809Z" Version="6.49">
<ResponseMessage xmlns="http://www.sabre.com/eps/schemas">
<Success/>
</ResponseMessage>
<ProfileInfo xmlns="http://www.sabre.com/eps/schemas">
<Message>
No profiles are found which match your selection criteria
</Message>
</ProfileInfo>
</Sabre_OTA_ProfileSearchRS>

1 个答案:

答案 0 :(得分:0)

我把所有问题都写了出来,但是后来我想出了正确的字段来进行正确过滤,所以我想为可能对它有用的其他人回答这个问题。

功能XML RQ在下面。我相信CustomerReferenceInfo可以省略,但是我把它留在那里,因为它确实返回了我想要的结果。

<?xml version="1.0" encoding="utf-16"?>
<Sabre_OTA_ProfileSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="6.46" ReturnPaymentCardToken="Y">
  <ProfileSearchCriteria ProfileNameOnly="Y" PageNumber="1" ReturnCount="250" xmlns="http://www.sabre.com/eps/schemas">
    <TPA_Identity ProfileTypeCode="TVL" ClientCode="TN" ClientContextCode="TMP" ProfileName="*" DomainID="PCC1" />
    <CustomerReferenceInfo />
    <AssociatedProfiles AssocProfileName="CompanyProfileName" DomainID="PCC1" IncludeTemplateAssoc="Y" />
  </ProfileSearchCriteria>
</Sabre_OTA_ProfileSearchRQ>