Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ProtocolName Property

ServiceDescriptionImporter.ProtocolName Property

Gets or sets the protocol used to access the described XML Web services.

Namespace:  System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public string ProtocolName { get; set; }

Property Value

Type: System.String
A String that contains the case-insensitive name of the protocol to be imported.

The allowed values of this property are:

  • "Soap"

  • "Soap12"

  • "HttpPost"

  • "HttpGet"

  • "HttpSoap"

The default value is "Soap", which indicates the SOAP 1.1 standard.

The following example illustrates the use of the ProtocolName property when using the ServiceDescriptionImporter class.

// Initialize a service description importer.
ServiceDescriptionImporter importer = new ServiceDescriptionImporter();
importer.ProtocolName = "Soap12";  // Use SOAP 1.2.

.NET Framework

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

.NET Framework Client Profile

Supported in: 3.5 SP1
© 2015 Microsoft