This topic has not yet been rated - Rate this topic

WebHttpEndpoint Class

A standard endpoint with a fixed WebHttpBinding binding that automatically adds the WebHttpBehavior behavior.

Namespace:  System.ServiceModel.Description
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)
public class WebHttpEndpoint : WebServiceEndpoint

The WebHttpEndpoint type exposes the following members.

  NameDescription
Public methodWebHttpEndpoint(ContractDescription)Initializes a new instance of the WebHttpEndpoint class with the specified ContractDescription.
Public methodWebHttpEndpoint(ContractDescription, EndpointAddress)Initializes a new instance of the WebHttpEndpoint class with the specified ContractDescription and EndpointAddress.
Top
  NameDescription
Public propertyAddressGets or sets the endpoint address for the service endpoint. (Inherited from ServiceEndpoint.)
Public propertyAutomaticFormatSelectionEnabledGets or sets a value that indicates whether automatic format selection is enabled.
Public propertyBehaviorsGets the behaviors for the service endpoint. (Inherited from ServiceEndpoint.)
Public propertyBindingGets or sets the binding for the service endpoint. (Inherited from ServiceEndpoint.)
Public propertyContentTypeMapperGets or sets the WebContentTypeMapper associated with the WebServiceEndpoint. (Inherited from WebServiceEndpoint.)
Public propertyContractGets the contract for the service endpoint. (Inherited from ServiceEndpoint.)
Public propertyCrossDomainScriptAccessEnabledGets or sets a value that indicates whether cross domain script access is enabled for the WebServiceEndpoint. (Inherited from WebServiceEndpoint.)
Public propertyDefaultOutgoingResponseFormatGets or sets the default outgoing response format.
Public propertyFaultExceptionEnabledGets or sets the flag that specifies whether a FaultException is generated when an internal server error (HTTP status code: 500) occurs.
Public propertyHelpEnabledGets or sets a value that indicates whether the HTTP help page is enabled for the endpoint.
Public propertyHostNameComparisonModeGets or sets a value that indicates whether the hostname is used to reach the service when matching the URI. (Inherited from WebServiceEndpoint.)
Public propertyIsSystemEndpointGets or sets whether the service endpoint is generated by the system as opposed to being user-defined. (Inherited from ServiceEndpoint.)
Public propertyListenUriGets or sets the URI at which the service endpoint listens. (Inherited from ServiceEndpoint.)
Public propertyListenUriModeGets or sets how the transport handles the URI that is provided for the service to listen on. (Inherited from ServiceEndpoint.)
Public propertyMaxBufferPoolSizeGets or sets the maximum amount of memory allocated for the buffer manager that manages the buffers required by endpoints that use this binding. (Inherited from WebServiceEndpoint.)
Public propertyMaxBufferSizeGets or sets the maximum amount of memory that is allocated for use by the manager of the message buffers that receive messages from the channel. (Inherited from WebServiceEndpoint.)
Public propertyMaxReceivedMessageSizeGets or sets the maximum size for a message that can be processed by the binding. (Inherited from WebServiceEndpoint.)
Public propertyNameGets or sets the name of the service endpoint. (Inherited from ServiceEndpoint.)
Public propertyReaderQuotasGets or sets constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding. (Inherited from WebServiceEndpoint.)
Public propertySecurityGets the security settings used with this binding. (Inherited from WebServiceEndpoint.)
Public propertyTransferModeGets or sets a value that indicates whether the service configured with the binding uses streamed or buffered (or both) modes of message transfer. (Inherited from WebServiceEndpoint.)
Protected propertyWebEndpointTypeGets the Type of the endpoint. (Overrides WebServiceEndpoint.WebEndpointType.)
Public propertyWriteEncodingGets or sets the character encoding that is used for the message text. (Inherited from WebServiceEndpoint.)
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Use this endpoint when writing a REST service.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.