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 8376867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:31:44+00:00 2026-06-09T15:31:44+00:00

I have a WCF activated WorkFlow Service (XAMLX) setup (hosted using WorkflowServiceHost). This WCF

  • 0

I have a WCF activated WorkFlow Service (XAMLX) setup (hosted using WorkflowServiceHost).

This WCF WebService has a ‘NetMsMqBinding’ binding and a net.msmq based endpoint which is used by clients to schedule operations.

On the client side, I’ve used Visual Studio to generate the proxy stub to communicate to this WCF service. Everything is working fine and I can see the messages appearing in my (journaled) MQ on the server and WCF picking up messages from the queue to activate the configured workflow based on the message.

I need to control the priority of the messages being sent to MQ so that certain WCF clients can get prioritized processing of their workflows.

It seems NetMsMqBinding doesn’t really support MQ message prioritization. Is this correct? If so, how can I achieve/simulate this? Can I use MQ Triggers to change priority of messages based on some flags?

  • 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-06-09T15:31:45+00:00Added an answer on June 9, 2026 at 3:31 pm

    Posting my solution, in case someone needs to figure this out

    NetMSMQBinding does not support setting message priority from the client side so I was using the wrong binding. The more powerful MsMqIntegrationBinding is the right way to go.

    Client side:
    From the client side, one needs to simply create a System.Messaging.Message object, set the priority and drop it in the MessageQueue.MessageQueue object which points to the destination MQ.

    Server side:
    The WorkflowService hosting WCF project needs the following endpointBinding in the web.config:


    <endpoint address="msmq.formatname:DIRECT=OS:.\private$\MyWebService/MyProcessingService.xamlx"
    binding="msmqIntegrationBinding"
    bindingConfiguration="MyMsMqIntegrationBinding"
    contract="IMyProcessingService"
    name="MqIntegrationBindingEndPoint"
    />

    (the address is assuming MQ service is local to the WCF hosted)


    <bindings>
    <!--We use msmqIntegrationBinding instead of netMsmqBinding since we want to control priority of MQ messages being dropped in the queue
    and that is not supported in netMsmq
    -->
    <msmqIntegrationBinding>
    <binding name="MyMsMqIntegrationBinding" exactlyOnce="false">
    <security mode="None" />
    </binding>
    </msmqIntegrationBinding>


    The way to receive the MsmqMessage from the MQ and process it is by dropping a “Receive” activity in the XAMLX and choosing Message as the Content definition MessageType as System.ServiceModel.MsmqIntegrationMessage<YourTypeGoesHere> Now you’ll have access to this MsmqMessage<yourType> from your ActivityContext where you can retrieve the value sent in the message.

    This is a very useful and powerful way to build a scalable, throttled with priority control MQ+WCF+WF based web service

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

Sidebar

Related Questions

I have WCF service hosted by Windows service. This is my app.config file (server-side)
I have a WCF service using netMsmqBinding and a client consuming it. I send
We have WCF services being self-hosted by a Windows Service inside our domain, using
I have a WCF web service. I want to send email from this service.
I have a wcf service defined like this: [OperationContract] [WebInvoke(Method = POST, ResponseFormat =
I have successfully implemented a standard WCF service bound to MSMQ using the net.msmq
I have WCF service that is hosted in IIS . I need to initialize
I have WCF service running from within a Windows Service. This is working fine
I have WCF service that is IIS-hosted and I have to send binary data
I have WCF service. Here is configuration <basicHttpBinding> <binding name=EmergencyRegistratorBinding> <security mode=TransportCredentialOnly> <transport clientCredentialType=Windows

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.