如何解决Sabre 事件通知服务配置文件订阅有效负载示例
对于配置文件更改的 Sabre 事件通知服务的有效负载是否有任何实际的 XML 示例可用? examples given in the developer center 被列为近 10 年前最后一次更新,并且不包含用于 Profile Service 订阅的任何负载。
单个通知和批量通知的示例是理想的。
开发人员文档包含有效载荷的片段,但没有任何可编写代码的内容,并且发送到端点以验证良好响应的示例有效载荷以用于 PNR 订阅的格式发送测试有效载荷。
解决方法
我能够接收到一些有效载荷,我想我会把它们放在这里供其他任何试图让它工作的人使用。显然,个人数据已从中删除。
<soap-env:Envelope xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:swse="http://wse.sabre.com/eventing" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">
<soap-env:Header>
<eb:MessageHeader eb:version="1.0" soap-env:mustUnderstand="1">
<wse:MySubscription>IPCC</wse:MySubscription>
<swse:EventTopic>WSE.QUEUE.PPP.PROFILECHNG</swse:EventTopic>
</eb:MessageHeader>
<wsa:Action>http://wse.sabre.com/EventSource/notification</wsa:Action>
<wsa:MessageID>asdgat23tt55-12g1-4522-eaa-97a0987g08970</wsa:MessageID>
<wse:Identifer>45chytqte-154d-4706-a6ad-25225d25255</wse:Identifer>
<wsa:To>https://www.yourwebapiendpoint.com/api/enslistener</wsa:To>
</soap-env:Header>
<soap-env:Body>
<swse:Sabre_OTA_EventNotification RequestTrackingID="GUID-GUID-GUID-GUID-GUIDGUID" TimeStamp="2021-02-19T22:35:27.137Z" xmlns="http://www.sabre.com/eps/schemas">
<swse:ProfileEvent>
<swse:Action Timestamp="2021-02-19T22:35:16.388Z" Type="UPDATE"/>
<swse:TPA_Identity ClientCode="TN" ClientContextCode="CON" DomainID="IPCC" ProfileName="LASTNAME/PASSENGERNAME T" ProfileTypeCode="TVL" UniqueID="UNIQUEID"/>
<swse:SubjectArea Name="PersonName" OrderSequenceNo="1"/>
<swse:SubjectArea Name="PaymentForm" OrderSequenceNo="1"/>
<swse:SubjectArea Name="Document" OrderSequenceNo="1"/>
<swse:SubjectArea Name="EmploymentInfo" OrderSequenceNo="1"/>
<swse:SubjectArea Name="CustomDefinedData" OrderSequenceNo="2"/>
<swse:SubjectArea Name="AirlinePref" OrderSequenceNo="1">
<swse:SubjectArea Name="AirlineSeatPref"/>
</swse:SubjectArea>
</swse:ProfileEvent>
</swse:Sabre_OTA_EventNotification>
</soap-env:Body>
</soap-env:Envelope>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。