MessageVersion Class
TOC
Collapse the table of content
Expand the table of content

MessageVersion Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies the versions of SOAP and WS-Addressing associated with a message and its exchange.

System.Object
  System.ServiceModel.Channels.MessageVersion

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

public sealed class MessageVersion

The MessageVersion type exposes the following members.

  NameDescription
Public propertyAddressingGets the version of WS-Addressing that is associated with the current message version.
Public propertyStatic memberDefaultGets the default message version used by Windows Phone.
Public propertyEnvelopeGets the SOAP version associated with the current message version.
Public propertyStatic memberNoneGets the message version that does not use SOAP or WS-Addressing.
Public propertyStatic memberSoap11Gets the message version using SOAP 1.1.
Public propertyStatic memberSoap12WSAddressing10Gets the message version using WS-Addressing 1.0 and SOAP 1.2.
Top

  NameDescription
Public methodStatic memberCreateVersion(EnvelopeVersion)Creates a message version object by using WS-Addressing 1.0 and with a specified SOAP version.
Public methodStatic memberCreateVersion(EnvelopeVersion, AddressingVersion)Creates a message version object with specified WS-Addressing and SOAP versions.
Public methodEqualsReturns a value that indicates whether the current message version is equal to a specified object. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeGets a hash code for the current message version. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringThe current message version. (Overrides Object.ToString().)
Top

The MessageVersion contains the versioning information both about the SOAP envelope and the addressing protocol that is used by a message. An instance of Message is bound upon creation to a specific MessageVersion by passing the version as a parameter into one of the CreateMessage overloads.

All the static "get" properties in this class indicate the possible message versions supported by the Windows Phone runtime.

There are currently two SOAP envelope versions available: SOAP 1.1 and SOAP 1.2. These versions of SOAP are represented by EnvelopeVersion and are returned by the Soap11 and Soap12WSAddressing10 properties. The version of SOAP associated with the MessageVersion can be recovered by using the Envelope property. For more information, see the schema for SOAP 1.1 and SOAP 1.2.

There is currently one version of WS-Addressing supported by the Windows Phone runtime: the one specified in the WS-Addressing 1.0 protocol. The address version used by the current message version can be recovered using the Addressing property. The version of WS-Addressing is represented by AddressingVersion and is returned by the WSAddressing10 property. The 9 May 2006 W3C Recommendation for WS-Addressing 1.0 - Core is available at 9 May 2006 W3C WS-Addressing 1.0 - Core.

The None property provides support for using "plain old XML" (POX)-style messaging. Enabling basic POX messaging is now a matter of setting up an HTTP binding on your service with a text encoder that uses the None property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft