问题描述
我无法在 Sabre 的 API 文档中找到如何在同一配置文件(例如电子邮件地址)中存在多个相同类型的元素时指定添加哪个元素以修改字段。
我收到“无法区分 EmailType 元素”的消息。错误
我需要添加任何参考编号或类似的东西吗?
<Sabre_OTA_ProfileUpdateRQ Version="6.61.4" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sabre.com/eps/schemas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sabre.com/eps/schemas \schemas\Sabre_OTA_ProfileUpdateRQ.xsd">
<ProfileInfo>
<PartialUpdates>
<TPA_Identity UniqueID="000000000" ProfileTypeCode="TVL" ClientCode="TN" ClientContextCode="TMP" DomainID="XXXX"/>
<Modify>
<ModifySubtree child="/Profile/Traveler/Customer/Email">
<MatchSubtree>
<Traveler>
<Email EmailAddress="[email protected]"
/>
</Traveler>
</MatchSubtree>
<NewSubtree>
<Traveler>
<Email EmailAddress="[email protected]"/>
</Traveler>
</NewSubtree>
</ModifySubtree>
</Modify>
</PartialUpdates>
</ProfileInfo>
</Sabre_OTA_ProfileUpdateRQ>
解决方法
Sabre 配置文件中的部分更新功能尚未实施。除了使用完整更新(删除整个配置文件,然后使用您在 EPS_EXT_ProfileUpdateRQ 调用中发送的内容对其进行更新)之外,您可以用来获得类似结果的另一种方法是查看技术用户指南中有关如何使用忽略的部分主题区功能。您可以更新配置文件而忽略其他主题区域并仅发送电子邮件字段的更新。