This documentation is archived and is not being maintained.

SoapBinding.Transport Property

Gets or sets the URI with the specification for HTTP transmission of SOAP data.

[Visual Basic]
Public Property Transport As String
[C#]
public string Transport {get; set;}
[C++]
public: __property String* get_Transport();
public: __property void set_Transport(String*);
[JScript]
public function get Transport() : String;
public function set Transport(String);

Property Value

A string value representing the URI for the specification for data transmission by means of SOAP. The default is an empty string ("").

Remarks

This required property value will generally be the same as that of the HttpTransport field. However, this property value can be any URI for data-transmission specifications, for example, SMTP or FTP.

Example

[Visual Basic] 
Dim mySoapBinding As New SoapBinding()
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document
' Add the 'SoapBinding' object to the 'Binding' object.
myBinding.Extensions.Add(mySoapBinding)

[C#] 
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;
// Add the 'SoapBinding' object to the 'Binding' object.
myBinding.Extensions.Add(mySoapBinding);

[C++] 
SoapBinding* mySoapBinding = new SoapBinding();
mySoapBinding->Transport = S"http://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
// Add the 'SoapBinding' object to the 'Binding' object.
myBinding->Extensions->Add(mySoapBinding);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SoapBinding Class | SoapBinding Members | System.Web.Services.Description Namespace

Show: