by Anonymous » 11 Apr 2025, 12:57
Ich versuche, einen SOAP -Client für GetelectronicDocumentRQ Sabre zu erstellen.
Code: Select all
try
{
// No more boilerplate needed with top level statements (https://docs.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates)
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://webservices.platform.sabre.com");
// request.Headers.TryAddWithoutValidation ("Authorization", token);
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
request.Headers.TryAddWithoutValidation("Cookie", "xxxx");
string xml= "\r\n \r\n \r\n \r\n 6952836690549\r\n \r\n";
//xml = xml.Trim().Replace("^([\\W]+)
Ich versuche, einen SOAP -Client für GetelectronicDocumentRQ Sabre zu erstellen.[code]try
{
// No more boilerplate needed with top level statements (https://docs.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates)
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://webservices.platform.sabre.com");
// request.Headers.TryAddWithoutValidation ("Authorization", token);
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
request.Headers.TryAddWithoutValidation("Cookie", "xxxx");
string xml= "\r\n \r\n \r\n \r\n 6952836690549\r\n \r\n";
//xml = xml.Trim().Replace("^([\\W]+)