Answered by:
Need some middle layer between Client and WCF service layer.

Question
-
User-1810177356 posted
We have WCF service as service layer and we don’t want direct communication between client and service layer. We want to implement some middle layer. How can I implement this middle layer so that UI will talk with service layer via this middle layer
Friday, January 25, 2013 4:08 AM
Answers
-
User614805505 posted
Hi,
Yes. You can. For this one, it is actually become another tier, not layer. And every tier added to the solution will decrease the performance. So you might want to re-consider for this matter.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, January 25, 2013 4:20 AM -
User1859182686 posted
Depends on your reason for wanting to hide the existing WCF layer from the client.
If your motivation is to limit client access or to simplify the available operations, I'd consider adding a seperate service within your WCF layer that calls your existing service implementation objects directly rather than through web requests. This will ensure you get maximum reuse of your service code without a performance hit.
If you are more interested in seperating the layers physically, so your current service is running on it's own seperate server or even behind a firewall, you need to write a new WCF layer to act as go between.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, January 25, 2013 4:24 AM
All replies
-
User614805505 posted
Hi,
Yes. You can. For this one, it is actually become another tier, not layer. And every tier added to the solution will decrease the performance. So you might want to re-consider for this matter.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, January 25, 2013 4:20 AM -
User1859182686 posted
Depends on your reason for wanting to hide the existing WCF layer from the client.
If your motivation is to limit client access or to simplify the available operations, I'd consider adding a seperate service within your WCF layer that calls your existing service implementation objects directly rather than through web requests. This will ensure you get maximum reuse of your service code without a performance hit.
If you are more interested in seperating the layers physically, so your current service is running on it's own seperate server or even behind a firewall, you need to write a new WCF layer to act as go between.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, January 25, 2013 4:24 AM