Click or drag to resize

SoapBindingsGetBasicHttpBinding Method (RequestOptions, Boolean, WSMessageEncoding)

Get a custom Binding object for SOAP 1.1 WebServices.

Namespace:  Hummingbird.TestFramework.Services
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public static Binding GetBasicHttpBinding(
	RequestOptions options,
	bool https,
	WSMessageEncoding messageEncoding
)

Parameters

options
Type: Hummingbird.TestFramework.ServicesRequestOptions
The RequestOptions options.
https
Type: SystemBoolean
Indicate if the service is secured by HTTPS
messageEncoding
Type: System.ServiceModelWSMessageEncoding
MessageEncoding of your WebServices: Text or MTOM

Return Value

Type: Binding
The BasicHttpBinding object for given parameters
Remarks

If the service returns file attachments, such as Images, PDF files or Excel documents, properly it uses MTOM. Please in this case specify MTOM in messageEncoding argument

Fore more information, please check the WSDL definition of your service.

See Also