WebHttpBehavior WebHttpBehavior WebHttpBehavior WebHttpBehavior Class

Definition

Enables the Web programming model for a Windows Communication Foundation (WCF) service.

public ref class WebHttpBehavior : System::ServiceModel::Description::IEndpointBehavior
public class WebHttpBehavior : System.ServiceModel.Description.IEndpointBehavior
type WebHttpBehavior = class
    interface IEndpointBehavior
Public Class WebHttpBehavior
Implements IEndpointBehavior
Inheritance
WebHttpBehaviorWebHttpBehaviorWebHttpBehaviorWebHttpBehavior
Derived
Implements

Remarks

The WebHttpBehavior behavior, when used in conjunction with the WebHttpBinding binding, enables WCF to expose and access Web style services. WebServiceHost automatically adds this behavior to endpoints that use the WebHttpBinding.

Constructors

WebHttpBehavior() WebHttpBehavior() WebHttpBehavior() WebHttpBehavior()

Initializes a new instance of the WebHttpBehavior class.

Properties

AutomaticFormatSelectionEnabled AutomaticFormatSelectionEnabled AutomaticFormatSelectionEnabled AutomaticFormatSelectionEnabled

Gets or sets a value that determines if automatic format selection is enabled.

DefaultBodyStyle DefaultBodyStyle DefaultBodyStyle DefaultBodyStyle

Gets and sets the default message body style.

DefaultOutgoingRequestFormat DefaultOutgoingRequestFormat DefaultOutgoingRequestFormat DefaultOutgoingRequestFormat

Gets and sets the default outgoing request format.

DefaultOutgoingResponseFormat DefaultOutgoingResponseFormat DefaultOutgoingResponseFormat DefaultOutgoingResponseFormat

Gets and sets the default outgoing response format.

FaultExceptionEnabled FaultExceptionEnabled FaultExceptionEnabled FaultExceptionEnabled

Gets or sets the flag that specifies whether a FaultException is generated when an internal server error (HTTP status code: 500) occurs.

HelpEnabled HelpEnabled HelpEnabled HelpEnabled

Gets or sets a value that determines if the WCF Help page is enabled.

JavascriptCallbackParameterName JavascriptCallbackParameterName JavascriptCallbackParameterName JavascriptCallbackParameterName

Gets or sets the JavaScript callback parameter name.

Methods

AddBindingParameters(ServiceEndpoint, BindingParameterCollection) AddBindingParameters(ServiceEndpoint, BindingParameterCollection) AddBindingParameters(ServiceEndpoint, BindingParameterCollection) AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

Implements the AddBindingParameters(ServiceEndpoint, BindingParameterCollection) method to pass data at runtime to bindings to support custom behavior.

AddClientErrorInspector(ServiceEndpoint, ClientRuntime) AddClientErrorInspector(ServiceEndpoint, ClientRuntime) AddClientErrorInspector(ServiceEndpoint, ClientRuntime) AddClientErrorInspector(ServiceEndpoint, ClientRuntime)

Adds a client error inspector to the specified service endpoint.

AddServerErrorHandlers(ServiceEndpoint, EndpointDispatcher) AddServerErrorHandlers(ServiceEndpoint, EndpointDispatcher) AddServerErrorHandlers(ServiceEndpoint, EndpointDispatcher) AddServerErrorHandlers(ServiceEndpoint, EndpointDispatcher)

Override this method to change the way errors that occur on the service are handled.

ApplyClientBehavior(ServiceEndpoint, ClientRuntime) ApplyClientBehavior(ServiceEndpoint, ClientRuntime) ApplyClientBehavior(ServiceEndpoint, ClientRuntime) ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

Implements the ApplyClientBehavior(ServiceEndpoint, ClientRuntime) method to support modification or extension of the client across an endpoint.

ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

Implements the ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher) method to support modification or extension of the client across an endpoint.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetOperationSelector(ServiceEndpoint) GetOperationSelector(ServiceEndpoint) GetOperationSelector(ServiceEndpoint) GetOperationSelector(ServiceEndpoint)

Creates a new WebHttpDispatchOperationSelector object.

GetQueryStringConverter(OperationDescription) GetQueryStringConverter(OperationDescription) GetQueryStringConverter(OperationDescription) GetQueryStringConverter(OperationDescription)

Gets the query string converter.

GetReplyClientFormatter(OperationDescription, ServiceEndpoint) GetReplyClientFormatter(OperationDescription, ServiceEndpoint) GetReplyClientFormatter(OperationDescription, ServiceEndpoint) GetReplyClientFormatter(OperationDescription, ServiceEndpoint)

Gets the reply formatter on the client for the specified endpoint and service operation.

GetReplyDispatchFormatter(OperationDescription, ServiceEndpoint) GetReplyDispatchFormatter(OperationDescription, ServiceEndpoint) GetReplyDispatchFormatter(OperationDescription, ServiceEndpoint) GetReplyDispatchFormatter(OperationDescription, ServiceEndpoint)

Gets the reply formatter on the service for the specified endpoint and service operation.

GetRequestClientFormatter(OperationDescription, ServiceEndpoint) GetRequestClientFormatter(OperationDescription, ServiceEndpoint) GetRequestClientFormatter(OperationDescription, ServiceEndpoint) GetRequestClientFormatter(OperationDescription, ServiceEndpoint)

Gets the request formatter on the client for the specified service operation and endpoint.

GetRequestDispatchFormatter(OperationDescription, ServiceEndpoint) GetRequestDispatchFormatter(OperationDescription, ServiceEndpoint) GetRequestDispatchFormatter(OperationDescription, ServiceEndpoint) GetRequestDispatchFormatter(OperationDescription, ServiceEndpoint)

Gets the request formatter on the service for the given service operation and service endpoint.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Validate(ServiceEndpoint) Validate(ServiceEndpoint) Validate(ServiceEndpoint) Validate(ServiceEndpoint)

Confirms that the endpoint meets the requirements for the Web programming model.

ValidateBinding(ServiceEndpoint) ValidateBinding(ServiceEndpoint) ValidateBinding(ServiceEndpoint) ValidateBinding(ServiceEndpoint)

Ensures the binding is valid for use with the WCF Web Programming Model.

ValidateOperation(OperationDescription) ValidateOperation(OperationDescription) ValidateOperation(OperationDescription) ValidateOperation(OperationDescription)

Applies to