Using MSMQ and Named Pipe Bindings in Workflow Service RRS feed

  • General discussion

  • Can we create a workflow service(Wokflow within receive activity) with Named Pipe and MSMQ Bindings as the endpoint.I am asking  this query as i read in one of msdn article that binding supported in W service are BasicHttpContextBinding, WSHttpContextBinding, and NetTcpContextBinding(link to msdn article is http://msdn.microsoft.com/en-us/library/cc825354.aspx).

    Please confirm on this as i want to use Named pipe and MSMQ binding in my workflow exposed as service hosted in Appfabric .Kindly also share any reference article to support it as i have to provide the same reference to my higher authority.



    Wednesday, April 28, 2010 11:21 AM

All replies

  • Hi,

    That article is for .NET 3.5, you can use any (many?) bindings for .NET 4 Workflow Services. I will look to see if I can find a topic that lists any limitations. There are some limitations, for example if you are using context-based correlation you must use one of the context bindings, and for request-reqply correlation you must use a binding that supports two-way operations, (which is most of them), and so on)

    I know you can use MSMQ bindings, we have a sample that shows how:


    Even if you are not using Durable Duplex correlation, you should be able to use the MSMQ bindings.

    Let me see if I can find a document that lists the available bindings that may be used for Workflow Services and if there are any limitations.

    Steve Danielson [Microsoft]
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm


    Wednesday, April 28, 2010 4:54 PM
  • Hi Steve,

    Thanks for your prompt reply.I will wait for that link.

    Meanwhile can you answer the following queries:-
    1. Can we call a workflow service from a windows service asychronously. If yes,can we
       accept a callback as well. Kindly share 1-2 liner code if possible for this.
    2. If answer to first point is yes,let me go one step deeper at pseudo code level

       Inside windows service, we have
       forloop(for each order)
       { call workflow service asynchronously;}

       Receive response asynchronously for each order;

      My query in this is how we would be able to track each asynchronous workflow service
      response seperatly.Sorry if i am going too deep



    Wednesday, April 28, 2010 5:38 PM
  • Seems the MSMQ bindings might be a more interesting idea in WF 4 because some of the context issues go away because of content based correlation, right?  I'd be interested to hear if anyone's done much with MSMQ in WF4 yet.
    Thursday, April 29, 2010 8:17 PM