This documentation is archived and is not being maintained.

HttpAddressBinding Class

Represents an extensibility element added to a Port within an XML Web service. This class cannot be inherited.

For a list of all members of this type, see HttpAddressBinding Members.

System.Object
   System.Web.Services.Description.ServiceDescriptionFormatExtension
      System.Web.Services.Description.HttpAddressBinding

[Visual Basic]
NotInheritable Public Class HttpAddressBinding
   Inherits ServiceDescriptionFormatExtension
[C#]
public sealed class HttpAddressBinding :
   ServiceDescriptionFormatExtension
[C++]
public __gc __sealed class HttpAddressBinding : public
   ServiceDescriptionFormatExtension
[JScript]
public class HttpAddressBinding extends
   ServiceDescriptionFormatExtension

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

This class, through its Location property, specifies the base URI for the XML Web service. For more information about XML Web services, see Building XML Web Services Using ASP.NET. For more information about Web Services Description Language (WSDL), see the specification at http://www.w3.org/TR/wsdl/.

Example

[Visual Basic] 
' Create the 'HttpAddressBinding' object.
Dim postAddressBinding As New HttpAddressBinding()

postAddressBinding.Location = "http://localhost/Service1.asmx"

' Add the 'HttpAddressBinding' to the 'Port'.
postPort.Extensions.Add(postAddressBinding)

[C#] 

               // Create the 'HttpAddressBinding' object.
               HttpAddressBinding postAddressBinding = new HttpAddressBinding();

               postAddressBinding.Location = "http://localhost/Service1.asmx";

               // Add the 'HttpAddressBinding' to the 'Port'.
               postPort.Extensions.Add(postAddressBinding);

[C++] 

               // Create the 'HttpAddressBinding' object.
               HttpAddressBinding* postAddressBinding = new HttpAddressBinding();

               postAddressBinding->Location = S"http://localhost/Service1.asmx";

               // Add the 'HttpAddressBinding' to the 'Port'.
               postPort->Extensions->Add(postAddressBinding);

[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

Namespace: System.Web.Services.Description

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

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

See Also

HttpAddressBinding Members | System.Web.Services.Description Namespace

Show: