WebHttpBinding Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A binding used to configure endpoints for Windows Communication Foundation (WCF) Web services that are exposed through HTTP requests instead of SOAP messages.
public ref class WebHttpBinding : System::ServiceModel::Channels::Binding, System::ServiceModel::Channels::IBindingRuntimePreferences
public class WebHttpBinding : System.ServiceModel.Channels.Binding, System.ServiceModel.Channels.IBindingRuntimePreferences
type WebHttpBinding = class
inherit Binding
interface IBindingRuntimePreferences
Public Class WebHttpBinding
Inherits Binding
Implements IBindingRuntimePreferences
- Inheritance
- Implements
The WCF Web Programming Model allows developers to expose WCF Web services through HTTP requests that use "plain old XML" (POX) style messaging instead of SOAP-based messaging. For clients to communicate with a service using HTTP requests, an endpoint of the service must be configured with the WebHttpBinding that has the WebHttpBehavior attached to it. The WCF Web Programming Model also requires that the individual service operations are annotated with the WebGetAttribute or WebInvokeAttribute attributes. This defines a mapping from a URI and HTTP method to the service operation, as well as the format of the messages used to call the operation and return the results. Support in WCF for syndication and ASP.AJAX integration are both built on top of the WCF Web Programming Model.
Web |
Initializes a new instance of the WebHttpBinding class. |
Web |
Initializes a new instance of the WebHttpBinding class with a binding specified by its configuration name. |
Web |
Initializes a new instance of the WebHttpBinding class with the type of security used by the binding explicitly specified. |
Allow |
Gets or sets a value that indicates whether the client accepts cookies and propagates them on future requests. |
Bypass |
Gets or sets a value that indicates whether to bypass the proxy server for local addresses. |
Close |
Gets or sets the interval of time provided for a connection to close before the transport raises an exception. (Inherited from Binding) |
Content |
Gets or sets the content type mapper. |
Cross |
Gets or sets a value that determines if cross domain script access is enabled. |
Envelope |
Gets the envelope version that is used by endpoints that are configured by this binding to receive HTTP requests. |
Host |
Gets or sets a value that indicates whether the hostname is used to reach the service when matching the URI. |
Max |
Gets or sets the maximum amount of memory allocated, in bytes, for the buffer manager that manages the buffers required by endpoints that use this binding. |
Max |
Gets or sets the maximum amount of memory, in bytes, that is allocated for use by the manager of the message buffers that receive messages from the channel. |
Max |
Gets or sets the maximum size, in bytes, for a message that can be processed by the binding. |
Message |
Gets the message version used by clients and services configured with the binding. (Inherited from Binding) |
Name |
Gets or sets the name of the binding. (Inherited from Binding) |
Namespace |
Gets or sets the XML namespace of the binding. (Inherited from Binding) |
Open |
Gets or sets the interval of time provided for a connection to open before the transport raises an exception. (Inherited from Binding) |
Proxy |
Gets or sets the URI address of the HTTP proxy. |
Reader |
Gets or sets constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding. |
Receive |
Gets or sets the interval of time that a connection can remain inactive, during which no application messages are received, before it is dropped. (Inherited from Binding) |
Scheme |
Gets the URI transport scheme for the channels and listeners that are configured with this binding. |
Security |
Gets the security settings used with this binding. |
Send |
Gets or sets the interval of time provided for a write operation to complete before the transport raises an exception. (Inherited from Binding) |
Transfer |
Gets or sets a value that indicates whether the service configured with the binding uses streamed or buffered (or both) modes of message transfer. |
Use |
Gets or sets a value that indicates whether the auto-configured HTTP proxy of the system should be used, if available. |
Write |
Gets or sets the character encoding that is used for the message text. |
Build |
Builds the channel factory stack on the client that creates a specified type of channel and that satisfies the features specified by a collection of binding parameters. |
Build |
Builds the channel factory stack on the client that creates a specified type of channel and that satisfies the features specified by a collection of binding parameters. (Inherited from Binding) |
Build |
Builds the channel factory stack on the client that creates a specified type of channel and that satisfies the features specified by an object array. (Inherited from Binding) |
Build |
Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified by a collection of binding parameters. (Inherited from Binding) |
Build |
Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified. (Inherited from Binding) |
Build |
Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified. (Inherited from Binding) |
Build |
Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified. (Inherited from Binding) |
Build |
Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified. (Inherited from Binding) |
Build |
Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified. (Inherited from Binding) |
Build |
Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified. (Inherited from Binding) |
Build |
Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified. (Inherited from Binding) |
Can |
Returns a value that indicates whether the current binding can build a channel factory stack on the client that satisfies the collection of binding parameters specified. (Inherited from Binding) |
Can |
Returns a value that indicates whether the current binding can build a channel factory stack on the client that satisfies the requirements specified by an object array. (Inherited from Binding) |
Can |
Returns a value that indicates whether the current binding can build a channel listener stack on the service that satisfies the collection of binding parameters specified. (Inherited from Binding) |
Can |
Returns a value that indicates whether the current binding can build a channel listener stack on the service that satisfies the criteria specified in an array of objects. (Inherited from Binding) |
Create |
Returns an ordered collection of binding elements contained in the current binding. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Returns a typed object requested, if present, from the appropriate layer in the binding stack. (Inherited from Binding) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Should |
Returns whether the name of the binding should be serialized. (Inherited from Binding) |
Should |
Returns whether the namespace of the binding should be serialized. (Inherited from Binding) |
Should |
Determines if reader quotas should be serialized. |
Should |
Determines if security settings should be serialized. |
Should |
Determines if the encoding used for serialization should be serialized. |
To |
Returns a string that represents the current object. (Inherited from Object) |
IBinding |
Gets a value that indicates whether incoming requests are handled synchronously or asynchronously. |
Produit | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :