Solved

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

Posted on 2011-03-19
3
204 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# Work flow 3 66
jquery, wcf 1 55
C# Connection String for Oracle database is not working 22 133
WCF Service Application cannot connect from TCP terminal 1 31
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

785 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