locked
What is the paradigm for running multiple WCF workflows? RRS feed

  • Question

  • Having worked through the tutorials, I'm trying to understand the paradigm for running multiple WCF workflows on a server. 

    If I were creating my own web service, I'd have many web methods on a single service running under a single host-header or port.  WCF/WF seems to demand a separate port per workflow.

    It seems to come down to this: are MS expecting us to use a separate port for each WCF/WF workflow (which could conceivably run into the 00s) or do they expect us to put a load of ostensibly separate workflows inside a parallel activity in a single WCF/WF program?
    Friday, September 25, 2009 6:29 AM

Answers

  • You can host many Workflow services through a single port.
    For ex i have two workflow services running on my localhost:
    http://localhost:8081/singlePaymentService.xamlx
    http://localhost:8081/LoanService.xamlx

    Next my LoanService is having a single ServiceContract and multiple Operation Contracts as Receive activities.
    ReceiveLoanApplication, OpenLoanProcess, ProcessLoan are my Receive activities configured as OperationContracts under a single ServiceContract.

    You still are following the same as in web service. So what is your doubt.
     
    • Proposed as answer by Sneha Gupta Friday, September 25, 2009 12:07 PM
    • Marked as answer by SSG31415926 Friday, October 2, 2009 8:41 AM
    Friday, September 25, 2009 11:55 AM

All replies

  • You can host many Workflow services through a single port.
    For ex i have two workflow services running on my localhost:
    http://localhost:8081/singlePaymentService.xamlx
    http://localhost:8081/LoanService.xamlx

    Next my LoanService is having a single ServiceContract and multiple Operation Contracts as Receive activities.
    ReceiveLoanApplication, OpenLoanProcess, ProcessLoan are my Receive activities configured as OperationContracts under a single ServiceContract.

    You still are following the same as in web service. So what is your doubt.
     
    • Proposed as answer by Sneha Gupta Friday, September 25, 2009 12:07 PM
    • Marked as answer by SSG31415926 Friday, October 2, 2009 8:41 AM
    Friday, September 25, 2009 11:55 AM
  • Ah.  Yes.  I see.

    I guess I was having a slow day when I posted that.  Now that you've pointed it out I understand what probably should've been obvious. 

    I was thinking that only one .xamlx was allowed per project - seeing it as the WCF equivalent of the Program.cs/entry point kind of thing.  Doh!

    Thanks for your reply.

    Friday, September 25, 2009 8:40 PM