WCFBasicHttpBinding Class

Use the WCFBasicHttpBinding class for communication between a WCF client and ASMX-based Web services or other services that conform to the WS-I Basic Profile 1.1.

Properties

WCFBasicHttpBinding property Type Description
TransferMode WSTransferMode (enumeration) Gets or sets a value to indicate whether messages are buffered or streamed. Values are: BUFFERED (default), STREAMED, STREAMEDREQUEST, and STREAMEDRESPONSE.
MessageEncoding WSMessageEncoding (enumeration) Specifies encoding for SOAP messages. Values are: Text (default), and MTOM (Message Transmission Optimization Mechanism).
TextEncoding WSTextEncoding (enumeration) Specifies character encoding for the SOAP message text. Values are: ASCII, BIGENDIANUNICODE, UNICODE, UTF32, UTF7, and UTF8 (default).
Security BasicHttpSecurity (class) Gets or configures the security settings of a BasicHttpBinding connection.
ReaderQuotas WCFReaderQuotas (class) Gets or sets processing constraints based on the SOAP message complexity for endpoints with this binding type.
AllowCookies Boolean Indicates whether the client accepts cookies. Values are:
  • true – accepts cookies.
  • false (default) – does not accept cookies.
BypassProxyOnLocal Boolean Indicates whether to bypass the proxy server for local addresses. Values are:
  • true – bypasses the proxy server.
  • false (default) – does not bypass the proxy server.
HostNameComparisonMode WCFHostNameComparisonMode (enum) When matching the URI, indicates whether to use the host name to reach the service. Values are: StrongWildCard (default), Exact, and WeakWildCard.
MaxBufferPoolSize Int64 (PowerScript longlong) Specifies the maximum amount of memory allocated for the manager of the buffers required by the endpoints using this binding. The default value is 524288.
MaxBufferSize Int32 (PowerScript long) Specifies the maximum size for a buffer that receives messages from the channel. The default value is 65536.
MaxReceivedMessageSize Int64 (PowerScript longlong) Specifies the maximum size for a message that can be processed by the binding. The default value is 65536.

Methods

WCFBasicHttpBinding method Description
AddHttpRequestHeader Adds an HTTP header to the HTTP request. Use this method to add or change any header in the HTTP message.
RemoveHttpRequestHeader Removes a specified HTTP header when the HTTP request message is sent.
GetHttpResponseHeader Gets an HTTP header value (based on the header type) from the HTTP response message.
Related reference
WSTransferMode Enumeration
BasicHttpSecurity Class
WCFConnection Class
WCFReaderQuotas Class
Related information
AddHttpRequestHeader Method
GetHttpResponseHeader Method
RemoveHttpRequestHeader Method