Answer the question
In order to leave comments, you need to log in
Why is a request not sent to the soap service from asp.net core using httpClient?
I'm trying to send a soap request to a service from asp net core 2.1. I use the following code
HttpContent content = new StringContent(requestXml, Encoding.UTF8);
content.Headers.ContentType =
MediaTypeHeaderValue.Parse(
"application/soap+xml;charset=UTF-8;action=\"urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b\"");
var response = await _client.PostAsync(new Uri("https://ips-test.rosminzdrav.ru/52f0d9db3c8c0"), content);
var result = await response.Content.ReadAsStringAsync();
return result;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question