I'm using Sabre web services (SabreCommandLLSRQ) to build a c# proof of concept for low fare re-booking.
I'm now hitting some special sabre characters that I don't know what they are in c#. I have a few that are working but I'm sure to encounter more - does anybody have a sabre character mapping for c#?
private string BuildPriceLine()
{
const char CHLOR = (char)0xE7; // Cross-of-Lorraine
const char ENDITEM = (char)0xA7; // End Item key
const char CHGKEY = (char)0xA5; // Change Key
var sabreCommand = new StringBuilder();
// WPRQ‡AAA‡UN*C123456‡KP0‡XP«
sabreCommand.Append("WPRQ");
sabreCommand.Append(CHLOR);
sabreCommand.Append("AAA");
sabreCommand.Append(CHLOR);
sabreCommand.Append("UN*C123456");
sabreCommand.Append(CHLOR);
sabreCommand.Append("KP0");
sabreCommand.Append(CHLOR);
sabreCommand.Append("XP");
sabreCommand.Append(WhatSabreCharIsThis); // "«" ?
return sabreCommand.ToString();
}
When you want to insert special Sabre characters in your XML, this is what I've got documented for Sabre Web Services SabreCommandLLSRQ service:
<!--Use ç for Cross of Lorraine-->
<!--Use ¤ for Change-->
<!--Use § for End Item-->
Cross of Lorraine is the most commonly used one, but End Item and Change are also used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With