Link to home
Start Free TrialLog in
Avatar of johndenny
johndenny

asked on

create service provider to access service either through host or service directly

I have one issue when creating SOA using wcf. We have web client and other clients (outsider).

Web -> Host (WCF) -> Service (Contracts) -> Business -> Data -> DB
For web, since it sits in the same web server with the service, instead of calling thru host, i can just directly reference it to service, but then it becomes coupling with service, but advantage will be faster. What do you think? Can I also create a project, where web reference that project. This project basically will either direct me to service directly or can be through host, depends what web tells this project to. Is it also possbile? how to do this?
Avatar of Aaron Jabamani
Aaron Jabamani
Flag of United Kingdom of Great Britain and Northern Ireland image

Better option is web having reference to wcf directly. As you said, it is good for performance. In case of outsiders, they can come via host.
Avatar of johndenny
johndenny

ASKER

you are right, what if creating a project like i mentioned, to have option to go via host (if service later separate from web server).  How to achieve that?
ASKER CERTIFIED SOLUTION
Avatar of Aaron Jabamani
Aaron Jabamani
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial