dptiq46022 2018-05-02 11:26
浏览 42

Sabre会话令牌到期

I have retrieved the session token using SessionCreateRQ, I know the session token expires after 15 minutes, how do i use OTA_PingRQ to update my session, there is no proper payload for that action, so please if any can give the SOAP payload.

  • 写回答

2条回答 默认 最新

  • douzhiling3166 2018-05-02 16:07
    关注

    No need to have a payload other than what you have below

    <OTA_PingRQ TimeStamp="2018-04-28T15:15:00-06:00" Version="1.0.0">
      <EchoData>FREE TEXT</EchoData>
    </OTA_PingRQ>
    

    Complete request with envelope:

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
        <SOAP-ENV:Header>
            <eb:MessageHeader SOAP-ENV:mustUnderstand="1" eb:version="1.0">
                <eb:ConversationId/>
                <eb:From>
                    <eb:PartyId>{FROM}</eb:PartyId>
                </eb:From>
                <eb:To>
                    <eb:PartyId>{TO}</eb:PartyId>
                </eb:To>
                <eb:CPAId>{IPCC}</eb:CPAId>
                <eb:Service eb:type="sabreXML">OTA_PingRQ</eb:Service>
                <eb:Action>OTA_PingRQ</eb:Action>
                <eb:MessageData>
                    <eb:MessageId>{MESSAGEID}</eb:MessageId>
                    <eb:Timestamp>{TIMESTAMP}</eb:Timestamp>
                </eb:MessageData>
            </eb:MessageHeader>
            <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/12/utility">
                <wsse:BinarySecurityToken>{TOKEN}</wsse:BinarySecurityToken>
            </wsse:Security>
        </SOAP-ENV:Header>
        <SOAP-ENV:Body>
            <OTA_PingRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0.0">
                <EchoData> Are you there </EchoData>
            </OTA_PingRQ>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思