Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining


This element specifies the WebHttpBehavior on an endpoint through configuration. This behavior, when used in conjunction with the <webHttpBinding> standard binding, enables the Web programming model for a Windows Communication Foundation (WCF) service.

<webHttp />

The following sections describe attributes, child elements, and parent elements.



Attribute Description


When this property is set to true, the WCF infrastructure determines the best format to use. Automatic format selection is disabled by default for backwards compatibility. Automatic format selection can be enabled programmatically or through configuration.


Specifies the default body style of returned messages. For more information, see WebMessageBodyStyle and WCF Web HTTP Formatting.


Specifies the default outgoing response format for messages. For more information, seeFor more information see, WCF Web HTTP Formatting.


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


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

Child Elements


Parent Elements


Element Description

<behavior> of <endpointBehaviors>

Specifies the set of endpoint behaviors.

Build Date:

© 2015 Microsoft