Solved

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

Posted on 2011-03-19
3
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xml jquery 7 340
DNS fault tolerance  service 2 79
Consume WCF web service from VBA 1 270
RestSharp 5 217
In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

737 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