Last post Apr 08, 2021 07:52 PM by bruce (sqlwork.com)
Mar 31, 2021 11:05 AM|kishore.bommaji|LINK
I have created WebService with SoapCore dll.
I am trying to call a soap service in my .net core application. It works as expected.
but when i try to set the proxy i alwas get 407 response http code.
Please help me to how to set proxy with credentials for SOAP client.
Ubuntu 20.04 /dotnet core 3.1
Apr 02, 2021 03:35 PM|bruce (sqlwork.com)|LINK
on linux you configure the httpclient proxy via environment variables:
note: if the proxy uses ntlm (windows auth) its not supported on linux
Apr 08, 2021 03:43 PM|kishore.bommaji|LINK
Thank you very much for the reply.
My requirement as below:
I created an application using dotnet core 3.1 in linux environment.
In this application I generated the SOAP reference using dotnet svcutil tool.
using the soapcore i am calling the soap service.
When I make a SOAP request without proxy it works as expected.
When I make a SOAP request with proxy (set in ubuntu machine) it does not going through proxy.
I want to set proxy details like proxy ip, port number, username, password.
I am not able to set, please help me with code snippet.
Thank you very much.
Apr 08, 2021 07:52 PM|bruce (sqlwork.com)|LINK
what part of setting the environment variables did you not understand? the username, password and proxy ipaddress are all there. standard linux url format.
if using bash or z-shell: