IBM MQ message capabilities for WCF applications
Non-SOAP/Non-JMS (that is, IBM MQ ) message capabilities for WCF applications.
For the Non-SOAP/Non-JMS interface, the IBM MQ message capabilities for WCF applications are as follows:- WCF applications can send and receive the base IBM MQ messages which can be processed by any IBM MQ application.
- WCF applications have full control to update the MQMD and payload.
- The WCF client can send IBM MQ messages that can be consumed by any IBM MQ clients, for example C, Java, JMS, and .NET clients.
The WCF for Non-SOAP/Non-JMS interface must use the following classes for setting the message payload and MQMD for the message:
- WmqStringMessage for a payload of type String
- WmqBytesMessage for a payload of type Bytes
- WmqXmlMessage for a payload of type XML
To set the payload of the message, use the Data property for the WmqStringMessage, WmqBytesMessage or WmqXmlMessage class, depending on the payload type. For example, use the following code to set a payload of type String:
WmqStringMessage strMsg = new WmqStringMessage(); //Setting the Message PayLoad strMsg.Data = "Hello World"; //MQMD property strMsg.Format = WmqMessageFormat.MQFMT_STRING;Parent topic: WCF Custom channel features and capabilities