WebHttpBehavior Class

Definition

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

public class WebHttpBehavior : System.ServiceModel.Description.IEndpointBehavior
Inheritance
WebHttpBehavior
Derived
Implements

Inherited Members

System.Object

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()

Initializes a new instance of the WebHttpBehavior class.

Properties

AutomaticFormatSelectionEnabled

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

DefaultBodyStyle

Gets and sets the default message body style.

DefaultOutgoingRequestFormat

Gets and sets the default outgoing request format.

DefaultOutgoingResponseFormat

Gets and sets the default outgoing response format.

FaultExceptionEnabled

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

HelpEnabled

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

JavascriptCallbackParameterName

Gets or sets the JavaScript callback parameter name.

Methods

AddBindingParameters(ServiceEndpoint, BindingParameterCollection)

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

AddClientErrorInspector(ServiceEndpoint, ClientRuntime)

Adds a client error inspector to the specified service endpoint.

AddServerErrorHandlers(ServiceEndpoint, EndpointDispatcher)

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

ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

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

ApplyDispatchBehavior(ServiceEndpoint, EndpointDispatcher)

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

GetOperationSelector(ServiceEndpoint)

Creates a new WebHttpDispatchOperationSelector object.

GetQueryStringConverter(OperationDescription)

Gets the query string converter.

GetReplyClientFormatter(OperationDescription, ServiceEndpoint)

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

GetReplyDispatchFormatter(OperationDescription, ServiceEndpoint)

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

GetRequestClientFormatter(OperationDescription, ServiceEndpoint)

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

GetRequestDispatchFormatter(OperationDescription, ServiceEndpoint)

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

Validate(ServiceEndpoint)

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

ValidateBinding(ServiceEndpoint)

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

ValidateOperation(OperationDescription)