HttpBinding Classe

Definição

Representa um elemento de extensibilidade adicionado a um Binding em um serviço Web XML. Essa classe não pode ser herdada.

public ref class HttpBinding sealed : System::Web::Services::Description::ServiceDescriptionFormatExtension
[System.Web.Services.Configuration.XmlFormatExtension("binding", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Binding))]
[System.Web.Services.Configuration.XmlFormatExtensionPrefix("http", "http://schemas.xmlsoap.org/wsdl/http/")]
public sealed class HttpBinding : System.Web.Services.Description.ServiceDescriptionFormatExtension
[<System.Web.Services.Configuration.XmlFormatExtension("binding", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Binding))>]
[<System.Web.Services.Configuration.XmlFormatExtensionPrefix("http", "http://schemas.xmlsoap.org/wsdl/http/")>]
type HttpBinding = class
    inherit ServiceDescriptionFormatExtension
Public NotInheritable Class HttpBinding
Inherits ServiceDescriptionFormatExtension
Herança
Atributos

Exemplos

O exemplo a seguir mostra um uso típico da HttpBinding classe.

// Create the 'HttpBinding' object.
HttpBinding^ myHttpBinding = gcnew HttpBinding;
myHttpBinding->Verb = "POST";

// Add the 'HttpBinding' to the 'Binding'.
myBinding->Extensions->Add( myHttpBinding );

// Create the 'HttpBinding' object.
HttpBinding myHttpBinding = new HttpBinding();

myHttpBinding.Verb="POST";
// Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding);
' Create the 'HttpBinding' object.
Dim myHttpBinding As New HttpBinding()

myHttpBinding.Verb = "POST"
' Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding)

Comentários

O uso dessa classe como um elemento de extensibilidade especifica que as informações devem ser passadas por HTTP. Para obter mais informações sobre a especificação de protocolos para serviços Web XML, consulte Serviços Web XML usando ASP.NET. Para obter mais informações sobre a Linguagem de Descrição dos Serviços Web (WSDL), consulte a especificação do WSDL .

Construtores

HttpBinding()

Inicializa uma nova instância da classe HttpBinding.

Campos

Namespace

Especifica o URI do namespace de XML que representa o transporte HTTP para uso com SOAP. Este campo é constante.

Propriedades

Handled

Obtém ou define um valor que indica se o ServiceDescriptionFormatExtension é usado pelo processo de importação quando o elemento de extensibilidade é importado.

(Herdado de ServiceDescriptionFormatExtension)
Parent

Obtém o pai do ServiceDescriptionFormatExtension.

(Herdado de ServiceDescriptionFormatExtension)
Required

Obtém ou define um valor que indica se o ServiceDescriptionFormatExtension é necessário para a ação à qual ele se refere.

(Herdado de ServiceDescriptionFormatExtension)
Verb

Obtém ou define um valor que indica se a solicitação HTTP será feita usando o método "GET" ou "POST".

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.

(Herdado de Object)

Aplica-se a