What is in a Response Message

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

Response messages are application-defined. So, determining what is in the response message is the responsibility of the application sending the response message as well as the application receiving the response.

Two message properties that can be included in the response message are the identifier and destination of the original message. For example, the destination queue of the original message can be returned in the response queue property of the response message, and the identifier of the original message can be returned in the correlation identifier of the response message.

Other message properties, such as the body of the message, can be included as well. When designing your response message, simply make sure that all applications know how to interpret the information provided by the response message.

Response Types and Retrieval

For information on See
The type of queues used as response queues Response Queues
Retrieving the message identifier using function calls PROPID_M_MSGID
Retrieving the message identifier using COM components MSMQMessage.Id
Retrieving destination queue information using function calls PROPID_M_DEST_QUEUE
Retrieving destination queue information using COM components MSMQMessage.DestinationQueueInfo

Sending and Returning Responses

For an example of See
Sending messages that request response messages C/C++ Code Example: Requesting Acknowledgment Messages

 Visual Basic Code Example: Requesting Acknowledgment Messages
Returning response messages C/C++ Code Example: Returning Response Messages

 Visual Basic Code Example: Returning Response Messages