I'm using Visual Studio 2017.
I have noticed that it was not possible to connect to a SOAP service from a .Net Core 2.0 when being behind a proxy (when connected directly to the internet it's working and when connecting through the proxy from a .Net Core 1.1 app it's working too).
I have created a little test program (Console app) that calls a public SOAP service (http://www.webservicex.net/globalweather.asmx). By changing the target of this program (.Net Core 1.1 / .Net Core 2.0) I can reproduce the problem.
Here is the sample code (the classes for connecting to the web service have been generated with VS 2017's Connected Services component):
BasicHttpBinding binding = new BasicHttpBinding();
EndpointAddress address = new EndpointAddress("http://www.webservicex.net/globalweather.asmx");
GlobalWeatherSoapClient client = new GlobalWeatherSoapClient(binding, address);
var response = client.GetCitiesByCountryAsync("France").Result;
I have done a network capture (with Wireshark) and when this problem happens I can see no HTTP request coming out from my computer. Does anybody know what is going wrong ? Maybe I am not calling this service the right way.
Thanks in advance