locked
Single Application with Multiple WCF Services ( .svc ) RRS feed

  • Question

  • User1616728867 posted

    Hello Everyone,

    I want to create multiple .svc fileS in a single WCF application and host the service in IIS.

    Basically, I have multiple classes with multiple method. I want to create multiple svc files. 

    is it possible? What are other options?

    thanks

    Aj

    Friday, February 8, 2013 8:10 AM

Answers

  • User614805505 posted

    Each .svc file will represent one WCF Services.

    http://msdn.microsoft.com/en-us/library/bb386382.aspx

    By refer to link above, I guess you already know how to add services reference to a client project. So, you have to keep repeat the steps for all WCF Services(per .svc file).

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, February 8, 2013 11:07 PM

All replies

  • User614805505 posted

    Hi,

    Definately you can do it. Just create a Web Application project and add WCF Services files (Interface Class & .svc file). The deployment is pretty much the same as web application.

    Friday, February 8, 2013 8:36 AM
  • User1616728867 posted

    Hey,

    But, how do you reference from client application or use? can you give some example?

    Friday, February 8, 2013 12:56 PM
  • User614805505 posted

    Each .svc file will represent one WCF Services.

    http://msdn.microsoft.com/en-us/library/bb386382.aspx

    By refer to link above, I guess you already know how to add services reference to a client project. So, you have to keep repeat the steps for all WCF Services(per .svc file).

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, February 8, 2013 11:07 PM