Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Message::CreateMessage Method

 

Creates a message.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(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.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(MessageVersion^, FaultCode^, String^, String^)

Creates a message that contains a SOAP fault, the reason for the fault, a version and an action.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(MessageVersion^, MessageFault^, String^)

Creates a message that contains a SOAP fault, a version and an action.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(MessageVersion^, String^)

Creates a message that contains a version and an action.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(MessageVersion^, String^, BodyWriter^)

Creates a message with a body that consists of an array of bytes.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(MessageVersion^, String^, Object^)

Creates a message with the specified version, action and body.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(MessageVersion^, String^, Object^, XmlObjectSerializer^)

Creates a message using the specified version, action, message body and serializer.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(MessageVersion^, String^, XmlDictionaryReader^)

Creates a message with the specified version, action and body.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(MessageVersion^, String^, XmlReader^)

Creates a message using the specified reader, action and version.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(XmlDictionaryReader^, Int32, MessageVersion^)

Creates a message using the specified reader, action and version.

System_CAPS_pubmethodSystem_CAPS_staticCreateMessage(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.

The following code example shows a client that uses the channel factory to send a message and read the reply.

No code example is currently available or this language may not be supported.
Return to top
Show:
© 2017 Microsoft