【发布时间】:2021-03-01 16:41:47
【问题描述】:
我在 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="asd@gmail.com"
/>
</Traveler>
</MatchSubtree>
<NewSubtree>
<Traveler>
<Email EmailAddress="asd@hotmail.com"/>
</Traveler>
</NewSubtree>
</ModifySubtree>
</Modify>
</PartialUpdates>
</ProfileInfo>
</Sabre_OTA_ProfileUpdateRQ>
【问题讨论】: