如何解决按票号查看票的最佳方式是什么?
如果您想通过票号(而不是 PNR)获取 Sabre 票数据,哪些 API 最适合使用?
解决方法
您可以使用 VCR_DisplayLLSRQ soap/xml Web 服务来获取票证和优惠券数据。
用于创建使用票号查找票证的请求的示例 Java 代码如下...
VCRDisplayRQ vcrDisplayRQ = new VCRDisplayRQ()
.withVersion("2.2.2")
.withSearchOptions(new SearchOptions()
.withTicketing(new Ticketing()
.withETicketNumber(ticketNo)
))
;
,
这是原始 XML。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sec="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:mes="http://www.ebxml.org/namespaces/messageHeader" xmlns:ns="http://www.opentravel.org/OTA/2002/11">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/12/utility">
<wsse:BinarySecurityToken>
{{sessionToken}}
</wsse:BinarySecurityToken>
</wsse:Security>
<mes:MessageHeader>
<mes:From>
<mes:PartyId>YOURNAME</mes:PartyId>
</mes:From>
<mes:To>
<mes:PartyId>SABRE</mes:PartyId>
</mes:To>
<mes:CPAId>1234</mes:CPAId>
<mes:ConversationId>1234</mes:ConversationId>
<mes:Service>eTicketCouponLLSRQ</mes:Service>
<mes:Action>eTicketCouponLLSRQ</mes:Action>
</mes:MessageHeader>
</soapenv:Header>
<soapenv:Body>
<eTicketCouponRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.0.0">
<Ticketing eTicketNumber="0067771112222"/>
</eTicketCouponRQ>
</soapenv:Body>
</soapenv:Envelope>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。