Message::CreateMessage Method
Creates a message.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | CreateMessage(MessageVersion^, FaultCode^, String^, Object^, String^) | Creates a message that contains a SOAP fault, a reason and the detail for the fault, a version and an action. |
![]() ![]() | CreateMessage(MessageVersion^, FaultCode^, String^, String^) | Creates a message that contains a SOAP fault, the reason for the fault, a version and an action. |
![]() ![]() | CreateMessage(MessageVersion^, MessageFault^, String^) | Creates a message that contains a SOAP fault, a version and an action. |
![]() ![]() | CreateMessage(MessageVersion^, String^) | Creates a message that contains a version and an action. |
![]() ![]() | CreateMessage(MessageVersion^, String^, BodyWriter^) | Creates a message with a body that consists of an array of bytes. |
![]() ![]() | CreateMessage(MessageVersion^, String^, Object^) | Creates a message with the specified version, action and body. |
![]() ![]() | CreateMessage(MessageVersion^, String^, Object^, XmlObjectSerializer^) | Creates a message using the specified version, action, message body and serializer. |
![]() ![]() | CreateMessage(MessageVersion^, String^, XmlDictionaryReader^) | Creates a message with the specified version, action and body. |
![]() ![]() | CreateMessage(MessageVersion^, String^, XmlReader^) | Creates a message using the specified reader, action and version. |
![]() ![]() | CreateMessage(XmlDictionaryReader^, Int32, MessageVersion^) | Creates a message using the specified reader, action and version. |
![]() ![]() | CreateMessage(XmlReader^, Int32, MessageVersion^) | Creates a message using the specified reader, action and version. |
This method is used to create a new copy of a message ready for sending.
When working with JSON messages use the CreateMessage(MessageVersion^, String^, Object^, XmlObjectSerializer^) method, the CreateMessage(MessageVersion^, String^, Object^) method does not work with JSON messages.

