Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6909695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:43:18+00:00 2026-05-27T08:43:18+00:00

I am working on a web service which is going to have both a

  • 0

I am working on a web service which is going to have both a native WPF client as well as a Javascript based web interface.

While I was working on the service and WPF client, the WCF service has been an IIS hosted WCF service project of its own, and has been working fine. Now that I’m starting to work in earnest on the web interface, I am wondering if keeping the WCF service separate is a good choice.

Reading around on the subject, there seem to be lots of options regarding this; for example, I could:

  • Keep the two projects separate
  • Create the asp.net MVC website and add an Ajax-enabled WCF service to the project
  • Create the asp.net MVC website and add a WCF service to the project
  • Create a WCF service library project and have that hosted in the MVC application (not entirely sure about this, but it seems possible)

And I have a feeling there’s probably more.

What do you suggest I should do? My goals are:

  • Accessing the service from the WCF client using a service reference like I have done so far
  • Accessing the service from Javascript on the web interface
  • Accessing the service using port 80 from Javascript and the WCF client (to avoid firewall issues)
  • Having website and service under the same domain
  • Being able to run the thing using shared hosting (Gearhost), without multiple IIS virtual directories/application starting points.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:43:19+00:00Added an answer on May 27, 2026 at 8:43 am

    In the end I decided to create three projects: the service interface, a dll holding service and data contracts, the service library itself, which references the interface, and the website, an MVC application which hosts the created service library. The MVC code interfaces with the service as if it was hosted on a different system, using a client proxy (which in this case connects to itself, funnily enough). This should allow me to host the whole thing in a single virtual directory while still providing for not-too-painful decoupling down the line if need be. To keep things tidier, I am creating the service proxy manually in code by referencing the interface dll and NOT using the “add service reference” function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

currently my team is working on a web-based service which has a very manual
I have a known working web service which is configured as a SOAP and
I have a WCF web service which is working seamlessly. Now the aim is
I am working on a web service for which we have already developed apps
I'm working on a web service client which need to communicate with a server
I am working on an app which calls a rest web service. Sometimes the
I have a web service that is working fine in one environment but not
I'm working on a simple web service which exports data from some data store
I'm writing Qt client for ASP.NET web service with FORMS based authentication. The service
We have a web service which serves small, arbitrary segments of a fixed inventory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.