【问题标题】:How to modifiy a specific element using Sabre_OTA_ProfileUpdateRQ如何使用 Sabre_OTA_ProfileUpdateRQ 修改特定元素
【发布时间】: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>

【问题讨论】:

    标签: api soap sabre


    【解决方案1】:

    Sabre 配置文件中的部分更新功能尚未实现。除了使用完整更新(删除整个配置文件,然后使用您在 EPS_EXT_ProfileUpdateRQ 调用中发送的内容进行更新)之外,您可以用来实现类似结果的另一种方法是查看技术用户指南中有关如何使用忽略的部分主题区功能。您可以更新个人资料而忽略其他主题区域并仅发送电子邮件字段的更新。

    【讨论】:

      猜你喜欢
      • 2017-07-16
      • 2013-08-02
      • 1970-01-01
      • 2021-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多