Breyta

Deila með


MessageVersion.CreateVersion Method

Definition

Creates a message version object with specified versions of the SOAP envelope and WS-Addressing.

Overloads

CreateVersion(EnvelopeVersion)

Creates a message version object by using WS-Addressing 1.0 and with a specified SOAP version.

CreateVersion(EnvelopeVersion, AddressingVersion)

Creates a message version object with specified SOAP and WS-Addressing versions.

CreateVersion(EnvelopeVersion)

Source:
MessageVersion.cs
Source:
MessageVersion.cs

Creates a message version object by using WS-Addressing 1.0 and with a specified SOAP version.

public:
 static System::ServiceModel::Channels::MessageVersion ^ CreateVersion(System::ServiceModel::EnvelopeVersion ^ envelopeVersion);
public static System.ServiceModel.Channels.MessageVersion CreateVersion (System.ServiceModel.EnvelopeVersion envelopeVersion);
static member CreateVersion : System.ServiceModel.EnvelopeVersion -> System.ServiceModel.Channels.MessageVersion
Public Shared Function CreateVersion (envelopeVersion As EnvelopeVersion) As MessageVersion

Parameters

envelopeVersion
EnvelopeVersion

The EnvelopeVersion that indicates the SOAP version to be used.

Returns

The MessageVersion using the specified version of SOAP and WS-Addressing 1.0.

Exceptions

The envelopeVersion is null.

Examples

msgVersion = MessageVersion.CreateVersion(envVersion);
msgVersion = MessageVersion.CreateVersion(envVersion)

Remarks

The SOAP versions currently available are SOAP 1.1 and SOAP 1.2. There is an EnvelopeVersion for each version of SOAP that contains the data relevant to its use.

Applies to

CreateVersion(EnvelopeVersion, AddressingVersion)

Source:
MessageVersion.cs
Source:
MessageVersion.cs

Creates a message version object with specified SOAP and WS-Addressing versions.

public:
 static System::ServiceModel::Channels::MessageVersion ^ CreateVersion(System::ServiceModel::EnvelopeVersion ^ envelopeVersion, System::ServiceModel::Channels::AddressingVersion ^ addressingVersion);
public static System.ServiceModel.Channels.MessageVersion CreateVersion (System.ServiceModel.EnvelopeVersion envelopeVersion, System.ServiceModel.Channels.AddressingVersion addressingVersion);
static member CreateVersion : System.ServiceModel.EnvelopeVersion * System.ServiceModel.Channels.AddressingVersion -> System.ServiceModel.Channels.MessageVersion
Public Shared Function CreateVersion (envelopeVersion As EnvelopeVersion, addressingVersion As AddressingVersion) As MessageVersion

Parameters

envelopeVersion
EnvelopeVersion

The EnvelopeVersion that indicates the SOAP version.

addressingVersion
AddressingVersion

The AddressingVersion that indicates the WS-Addressing version.

Returns

The MessageVersion using the specified versions of WS-Addressing and SOAP.

Exceptions

envelopeVersion or addressingVersion is null.

Examples

msgVersion = MessageVersion.CreateVersion(envVersion, addrVersion);
msgVersion = MessageVersion.CreateVersion(envVersion, addrVersion)

Remarks

The SOAP versions currently available are SOAP 1.1 and SOAP 1.2. There is an EnvelopeVersion for each version of SOAP that contains the data relevant to its use.

There are currently two versions of WS-Addressing available. One submitted 10 August 2004 and the other submitted August 2005 and referred to as the WS-Addressing 1.0 protocol.

Applies to