WS2007HttpBinding Constructors

Definition

Initializes a new instance of the WS2007HttpBinding class.

Overloads

WS2007HttpBinding()

Initializes a new instance of the WS2007HttpBinding class.

WS2007HttpBinding(SecurityMode)

Initializes a new instance of the WS2007HttpBinding class with a specified type of security used by the binding.

WS2007HttpBinding(String)

Initializes a new instance of the WS2007HttpBinding class with a binding specified by its configuration name.

WS2007HttpBinding(SecurityMode, Boolean)

Initializes a new instance of the WS2007HttpBinding class with a specified type of security used by the binding and a value that indicates whether a reliable session is enabled.

WS2007HttpBinding()

Source:
WS2007HttpBinding.cs

Initializes a new instance of the WS2007HttpBinding class.

public WS2007HttpBinding ();

Examples

The following example shows how to initialize a new instance of the WS2007HttpBinding class.

Remarks

This constructor initializes an instance of the WS2007HttpBinding class and sets the MessageSecurityVersion, ReliableMessagingVersion, and TransactionProtocol properties that specify the WS-Security 1.1, WS-Trust 1.3, WS-SecureConversation 1.3, WS-SecurityPolicy 1.2, and WS-I Basic Security Profile 1.0 security protocols.

Applies to

.NET 8 (package-provided) and other versions
Product Versions
.NET 8 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WS2007HttpBinding(SecurityMode)

Source:
WS2007HttpBinding.cs

Initializes a new instance of the WS2007HttpBinding class with a specified type of security used by the binding.

public WS2007HttpBinding (System.ServiceModel.SecurityMode securityMode);

Parameters

securityMode
SecurityMode

The value of SecurityMode that specifies the type of security that is used with the SOAP message and for the client.

Examples

The following example shows how to initialize a new instance of the WS2007HttpBinding class with a securityMode parameter.

Applies to

.NET 8 (package-provided) and other versions
Product Versions
.NET 8 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WS2007HttpBinding(String)

Initializes a new instance of the WS2007HttpBinding class with a binding specified by its configuration name.

public WS2007HttpBinding (string configName);

Parameters

configName
String

The binding configuration name for the WS2007HttpBindingElement.

Exceptions

The binding element with the name configName was not found.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WS2007HttpBinding(SecurityMode, Boolean)

Source:
WS2007HttpBinding.cs

Initializes a new instance of the WS2007HttpBinding class with a specified type of security used by the binding and a value that indicates whether a reliable session is enabled.

public WS2007HttpBinding (System.ServiceModel.SecurityMode securityMode, bool reliableSessionEnabled);

Parameters

securityMode
SecurityMode

The value of SecurityMode that specifies the type of security that is used with the SOAP message and for the client.

reliableSessionEnabled
Boolean

true if a reliable session is enabled; otherwise, false.

Remarks

This constructor initializes an instance of the WS2007HttpBinding class and sets the MessageSecurityVersion, ReliableMessagingVersion, and TransactionProtocol properties that specify the WS-Security 1.1, WS-Trust 1.3, WS-SecureConversation 1.3, WS-SecurityPolicy 1.2, and WS-I Basic Security Profile 1.0 security protocols.

Applies to

.NET 8 (package-provided) and other versions
Product Versions
.NET 8 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1