Last post Mar 16, 2017 06:34 AM by Chris Zhao
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?
Mar 12, 2017 02:24 PM|raju dasa|LINK
I think "Add Service Reference" is enough to communicate with middle WCF application.
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.