Click here to Skip to main content
15,938,446 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am a newbie to WCF and I am working on a project where they are using Http Proxy to communicate between two WCF Windows Services. After seeing the implementation, the way I understood is that a Service Contract is generated in the Proxy Server and the Windows Service which is making a request shall use the Proxy server library to access the OperationContracts exposed by the other WCF service. Please correct me if there is anything wrong in my understanding.What are the Pros and Cons of doing this way and also is there any alternate way for achieving the same without using Http Proxy servers considering both the windows services are in the same machine?

Also, how is it handled between 2 Web Services?

Thanks in advance.
Sergey Alexandrovich Kryukov 17-Sep-14 13:30pm    
If your WCF-based applications use HTTP, the use of the proxi is no different from any other HTTP-based applications, such as HTTP servers and browsers. This is a totally orthogonal aspect. Aren't you mixing up HTTP proxy and remoting proxy interface (code)?
If so, you probably need to read on each topic separately, to overcome this confusion...

1 solution

Please see my comment to the question. I got an impression that you confused two unrelated concepts.

Read about the proxy servers:[^].

As to the WCF proxy, the concept came from the concept of stub as it is understood in distributed computing:[^].

The terminology is confusing. This is historical thing. It's just so happened that, in the terminology of some systems, the same thing is called either proxy or server stub:[^].

For understanding of WCF proxies, please see:[^],[^].

Please see also this CodeProject article: WCF Proxy Generation Options[^].

Share this answer
CSharpNewbie 2 17-Sep-14 14:48pm    
Thanks a lot SA. I was actually referring to WCF proxy and have mentioned as proxy server which is my bad as this is the terminology used in our team, so was completely mistaken by it.
Sergey Alexandrovich Kryukov 17-Sep-14 15:58pm    
No problem. It's never too late to sort out certain things. It's good that my guess turned out to be correct and was able to help.
Good luck, call again.
Maciej Los 17-Sep-14 16:37pm    
Sergey Alexandrovich Kryukov 17-Sep-14 16:47pm    
Thank you, Maciej.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900