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

  • Home
  • SEARCH
  • 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 392395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:09:17+00:00 2026-05-12T16:09:17+00:00

I have a generic service which i can host in an exe and call

  • 0

I have a generic service which i can host in an exe and call from another .net app, but since web services on IIS are loaded on demand, i cant host it an web project.

is there a way to tweak the wcf stack to read the url ( in which i can pass the type information) and invoke the service ?

i tried using servicefactory, but its more for injecting behaviors rather than invoking a service.

thanks

  • 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-12T16:09:17+00:00Added an answer on May 12, 2026 at 4:09 pm

    OOP (including things like generics and interfaces) and the SOA (Service oriented architecture) world don’t almost match up entirely.

    This might be one of those cases. The WCF system is geared towards sending messages between client and server, and thus, it’s always about real and concrete implementations; WCF messaging doesn’t handle interface, and as far as I’ve experienced, it doesn’t handle generics all that well either.

    This is especially true if you consider the interoperable nature of WCF – it’s after all NOT “just” a .NET technology, but an interoperable SOAP (and REST) stack that could be talking to other systems that have no clue about generics (yes, those still exist).

    Anything you want to send back and forth between client and server as a SOAP message has to be in a form that can be expressed with a XML schema (your DataContract) – I don’t see how you want to model a generic MyType<T> in XSD – it’s just not designed to do that.

    So as much as I like generics, too – I don’t think they’re a good fit to a service-oriented scenario. So I guess you’ll have to redesign your services a bit to take that into account.

    Marc

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

Sidebar

Related Questions

I have a web service which has a generic function that returns a dataset
I am looking for a web service which can can extract important keywords from
I have a generic REST service layer written to Java modules which can be
I am aware of Web Services and WCF but I have generic question with
I have generic list which must be a preserved order so I can retrieve
I have a WCF service which exposes a Generic interface (and the service has
I have an ASP.NET MVC 3 (Razor) Web Application, with a particular page which
I have this project in which i am calling a web service, receiving rates
I have data comming back from web service in the form of a ObservableCollection<string>
If i have a class which accepts a generic type derived from IUser, how

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.