(Write-only, introduced in MSMQ 3.0.) The PROPID_M_SOAP_BODY property specifies the application-generated SOAP body elements for inclusion in the SOAP envelope of an SRMP message.
A string of Unicode characters containing XML body elements for inclusion in the SOAP envelope of the SRMP message.
The PROPID_M_SOAP_BODY property is a write-only property that is used only when an application sends SRMP messages. When an SRMP message is sent, the sending queue manager inserts the string of SOAP body elements specified in this property into the SOAP body portion of the SOAP envelope in the message. It then attaches the SOAP envelope, and, when applicable, SOAP attachments to the message.
The SOAP body, which is part of the SOAP envelope, is distinct from the application-defined message body, which is sent as an attachment to the SRMP message.
To set additional application-generated SOAP header elements in the SOAP envelope, use the PROPID_M_SOAP_HEADER property.
To retrieve the complete SOAP envelope, use the PROPID_M_SOAP_ENVELOPE property.
To retrieve the entire contents of an SRMP message in the form of an array of bytes, including both the SOAP envelope and the SOAP attachments associated with it, use the PROPID_M_COMPOUND_MESSAGE property.
To set or retrieve the message body, which is sent as an attachment in an SRMP message, use the PROPID_M_BODY property.
The PROPID_M_SOAP_BODY property is write-only. If the receiving application attempts to retrieve the PROPID_M_SOAP_BODY property, MQReceiveMessage or MQReceiveMessageByLookupId returns the warning MQ_INFORMATION_PROPERTY, the individual result for the PROPID_M_SOAP_BODY property is MQ_INFORMATION_PROPERTY_IGNORED, and the other properties are received correctly.
Equivalent COM Property
With COM components, the equivalent property is MSMQMessage.SoapBody.
The following code fragment shows how PROPID_M_SOAP_BODY is specified in arrays that can be used to initialize an MQMSGPROPS structure for setting application-generated SOAP body elements.
aMsgPropId[i] = PROPID_M_SOAP_BODY; // Property ID aMsgPropVar[i].vt = VT_LPWSTR; // Type indicator aMsgPropVar[i].pwszVal = wszSoapBody; i++;