c# - Communicating with WCF service via Web Proxy; from within a Windows Service -


i trying communicate between windows service on several pcs, , wcf service hosted on web server (different network).

when there no proxy between client , server, communication works fine.

however, when there proxy in place between client , server, cannot figure out how authenticate against it.

in old .asmx days, did this:

myservice.proxy = new webproxy("internal.proxyserver.com", 8080) {     credentials = new networkcredential("myusername", "mypassword" , "mydomain"); }; 

i couldn't find equivalent way in wcf.

i have tried changing defaultwebproxy of webrequest object, , assigning credentials way, doesn't seem work, , unable connect web service.

asmx made easy; can explain correct procedure in wcf?

edit: relevance of mentioning in windows service client runs without user supplying credentials, need hard coded/config filed application.

the following links should sort out issue:

[wcf]how supply dedicated credentials webproxy authentication in wcf client

how use http proxy authentication in wcf

proxy server authentication wcf service


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -