WebReference.ProtocolName Property

Gets or sets the protocol associated with the Web reference.

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

public:
property String^ ProtocolName {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_ProtocolName ()

/** @property */
public void set_ProtocolName (String value)

public function get ProtocolName () : String

public function set ProtocolName (value : String)

Not applicable.

Property Value

A String containing the name of the protocol associated with the Web reference.

Allowed protocol strings include "Soap" (indicating SOAP 1.0) and "Soap12" (indicating SOAP 1.2). The value of this property determines the protocol used by proxy clients when contacting any XML Web service in the Documents collection.

For more information on SOAP, see the World Wide Web Consortium Web site, at www.w3.org.

The following code example illustrates the use of this property. This code example is part of a larger example provided for the WebReference class.

// Create a web referernce using the WSDL collection.
WebReference reference = new WebReference(wsdlCollection, space);
reference.ProtocolName = "Soap12";

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: