Solved

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

Posted on 2011-03-19
3
202 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:johndenny
  • 2
3 Comments
 
LVL 25

Expert Comment

by:apeter
Comment Utility
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.
0
 

Author Comment

by:johndenny
Comment Utility
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?
0
 
LVL 25

Accepted Solution

by:
apeter earned 500 total points
Comment Utility
If  separated also, i guess it will be near your web server.

It is good idea but, if you going to user any other binding other than bascihttpbinding...how this extra layer is going to accept and parse it.Isn't that your reinventing the wheel here?

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now