【问题标题】:What is the best way to view a ticket by ticket number? [closed]按票号查看票的最佳方式是什么? [关闭]
【发布时间】:2021-04-14 22:30:25
【问题描述】:

如果您想按票号(而不是 PNR)获取 Sabre 票数据,最适合使用哪种 API?

【问题讨论】:

    标签: sabre


    【解决方案1】:

    您可以使用 VCR_DisplayLLSRQ soap/xml 网络服务来获取票证和优惠券数据。

    用于创建使用票号查找票证的请求的示例 java 代码如下...

    VCRDisplayRQ vcrDisplayRQ = new VCRDisplayRQ()
      .withVersion("2.2.2")
      .withSearchOptions(new SearchOptions()
        .withTicketing(new Ticketing()
          .withETicketNumber(ticketNo)
          ))
      ;
    

    【讨论】:

      【解决方案2】:

      这是原始 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>
      
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-06-27
        • 2012-06-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多