请求Sabre会话续期:OTA_PingRQ的SOAP请求报文示例
Got it, here's a fully functional SOAP request example for OTA_PingRQ that you can use to renew your 15-minute session token. This follows the OTA 2003/05 specification, which is the most common version for these requests:
OTA_PingRQ SOAP Request Example
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ota="http://www.opentravel.org/OTA/2003/05"> <soapenv:Header> <!-- Include your session token here - this is the critical part for renewal --> <ota:SessionToken>{YOUR_SESSION_TOKEN}</ota:SessionToken> </soapenv:Header> <soapenv:Body> <ota:OTA_PingRQ EchoToken="PingTest123" Version="1.0"> <!-- Optional: Add EchoData to verify the response matches your input --> <ota:EchoData>SessionRenewalPing</ota:EchoData> </ota:OTA_PingRQ> </soapenv:Body> </soapenv:Envelope>
Key Notes:
- Replace
{YOUR_SESSION_TOKEN}with the exact token string you received from yourSessionCreateRQresponse. - The
EchoTokenis a unique identifier you can set (like a test ID) to track the request/response pair. - The
EchoDataelement is optional but useful for confirming the server processed your request correctly—you’ll see the same string in the OTA_PingRS response. - Ensure you send this request to the same SOAP endpoint URL you used for
SessionCreateRQ; most providers use a single endpoint for all OTA requests.
When you send this, the server should respond with an OTA_PingRS that confirms your session has been extended (usually resetting the 15-minute expiration timer).
内容的提问来源于stack exchange,提问作者mshoaibdev
相关产品推荐
相关产品推荐

