>> i need to add another WCF web service in the middle between the original web service and the database.
Since the 2 WCF web services will run in different processes or in different machines. So we won't able to invoke the middle WCF service like treat a DLL. You could consuming the middle WCF service from your first WCF web service as normal. There are 3
ways to create proxy to consuming the WCF services.
Using SvcUtil.exe, we can create the proxy class and its configuration file with end-points.
Adding Service reference to the client application.
Implementing ClientBase<T> class
If you have further questions, please feel free to let me know.
Member
21 Points
143 Posts
Communicate between web services
Mar 12, 2017 10:17 AM|Sanfoor|LINK
i have a WCF web service that communicate with database directly.
i need to add another WCF web service in the middle between the original web service and the database.
how i can do that? what is the needed configurations to do that?
All-Star
15176 Points
3889 Posts
Re: Communicate between web services
Mar 12, 2017 02:24 PM|raju dasa|LINK
Hi,
I think "Add Service Reference" is enough to communicate with middle WCF application.
rajudasa.blogspot.com || rajudasa-tech
All-Star
17542 Points
3510 Posts
Re: Communicate between web services
Mar 16, 2017 06:34 AM|Chris Zhao|LINK
>> i need to add another WCF web service in the middle between the original web service and the database.
Since the 2 WCF web services will run in different processes or in different machines. So we won't able to invoke the middle WCF service like treat a DLL. You could consuming the middle WCF service from your first WCF web service as normal. There are 3 ways to create proxy to consuming the WCF services.
Using SvcUtil.exe, we can create the proxy class and its configuration file with end-points.
Adding Service reference to the client application.
Implementing ClientBase<T> class
If you have further questions, please feel free to let me know.
Best Regards,
Chris