Export (0) Print
Expand All

MessageVersion Class

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
Assemblies:   System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)
  System.ServiceModel (in System.ServiceModel.dll)

public sealed class MessageVersion

The MessageVersion type exposes the following members.

  NameDescription
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsAddressingGets or sets the version of WS-Addressing that is associated with the current message version.
Public propertyStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsDefaultGets the default message version used by Windows Communication Foundation (WCF).
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsEnvelopeGets the SOAP version associated with the current message version.
Public propertyStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsNoneGets the message version that does not use SOAP or WS-Addressing.
Public propertyStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsSoap11Gets the message version using SOAP 1.1.
Public propertyStatic memberSoap11WSAddressing10Gets the message version using WS-Addressing 1.0 and SOAP 1.1.
Public propertyStatic memberSoap11WSAddressingAugust2004Gets the message version by using WS-Addressing submitted 10 August 2004 and SOAP 1.1.
Public propertyStatic memberSoap12Gets the message version using SOAP 1.2.
Public propertyStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsSoap12WSAddressing10Gets the message version using WS-Addressing 1.0 and SOAP 1.2.
Public propertyStatic memberSoap12WSAddressingAugust2004Gets the message version using WS-Addressing submitted August 2004 and SOAP 1.2.
Top

  NameDescription
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateVersion(EnvelopeVersion)Creates a message version object by using WS-Addressing 1.0 and with a specified SOAP version.
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateVersion(EnvelopeVersion, AddressingVersion)Creates a message version object with specified SOAP and WS-Addressing versions.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsEqualsReturns a value that indicates whether the current message version is equal to a specified object. (Overrides Object.Equals(Object).)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetHashCodeGets a hash code for the current message version. (Overrides Object.GetHashCode().)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsToStringReturns the string representation of the 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, such as Soap11WSAddressing10 and Soap12 have enumeration-like semantics. They provide an enumeration of the possible message versions supported by the Windows Communication Foundation (WCF) runtime. A message has an envelope structure and an addressing structure. MessageVersion is just a shortcut for supplying {EnvelopeVersion, AddressingVersion} together.

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 Soap12 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 are currently two versions of WS-Addressing available. The one submitted on 10 August 2004 and 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. These versions of WS-Addressing are represented by AddressingVersion and are returned by the WSAddressingAugust2004 and WSAddressing10 properties. The WS-Addressing August 2004 is retained as a legacy value. The 10 August 2004 W3C Member Submission for WS-Addressing is available at Web Services Addressing (WS-Addressing). The 17 August 2005 W3C Candidate Recommendation for WS-Addressing 1.0 - Core is available at Web Services Addressing 1.0 - Core.

None 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 None.

Message version objects can be created using specified versions of WS-Addressing and SOAP using one of the CreateVersion overloads.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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:
© 2014 Microsoft