WebHttpBehavior.GetRequestClientFormatter Method

Definition

Gets the request formatter on the client for the specified service operation and endpoint.

protected:
 virtual System::ServiceModel::Dispatcher::IClientMessageFormatter ^ GetRequestClientFormatter(System::ServiceModel::Description::OperationDescription ^ operationDescription, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
protected virtual System.ServiceModel.Dispatcher.IClientMessageFormatter GetRequestClientFormatter (System.ServiceModel.Description.OperationDescription operationDescription, System.ServiceModel.Description.ServiceEndpoint endpoint);
abstract member GetRequestClientFormatter : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.Dispatcher.IClientMessageFormatter
override this.GetRequestClientFormatter : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.Dispatcher.IClientMessageFormatter
Protected Overridable Function GetRequestClientFormatter (operationDescription As OperationDescription, endpoint As ServiceEndpoint) As IClientMessageFormatter

Parameters

operationDescription
OperationDescription

The service operation.

endpoint
ServiceEndpoint

The service endpoint.

Returns

An IClientMessageFormatter reference to the request formatter on the client for the specified operation and endpoint.

Remarks

This is an extensibility point that derived behaviors can use to supply their own implementation of IClientMessageFormatter that is called to convert the input parameters of the service operation call to a request message. Parameters specified in the UriTemplate of the service operation must be serialized to the To URI of the request message and other parameters must be serialized to the body of the request message.

Applies to