Solved

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

Posted on 2011-03-19
3
203 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
ID: 35175904
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
ID: 35177176
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
ID: 35182963
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

864 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

19 Experts available now in Live!

Get 1:1 Help Now