Setup http proxy (with user and password) to invoke WCF service reference #4822
Labels
customer assistance
Help customers with questions regarding usage of WCF features.
Projects
I added a wcf service reference to external soap web service. It's all good until i publish the solution to an internal machine which need to setup a http proxy (with Basic auth user/password) to be able to invoke WS.
In .net framework, it was just add a section config to setup the proxy. I need the same in a .net 6 project..
I already tried to create a CustomBinding object to wrap BasicHttpBinding, in order to set the proxy but without success...
Anybody can give me some tips to achieve that? I already tried different approaches, and it does not work...
My code to setup a http proxy in WCF client (without success).
It seems the proxy is ignored.. I receive the following exception:
Thanks a lot.
The text was updated successfully, but these errors were encountered: