Consuming a WCF service with a raw MSMQ program

WCF provides built-in NetMsmqBinding for developing services over the MSMQ transport layer. However, the NetMsmqBinding totally encapsulates the underlying details of the MSMQ programming layer so that a developer only needs to focus on the WCF service programming model and object model. This is good for pure WCF applications; however, for some scenarios where the client side is a legacy MSMQ program, the NetMsmqBinding will not work and we will need a means to make the WCF service interoperable with the raw MSMQ API-based client.

In this recipe, we will demonstrate how to use the WCF MsmqIntegrationBinding to make a WCF service work correctly with a raw MSMQ (System.Messaging)-based client application. ...

Get Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.