IWSDEndpointProxy::SendTwoWayRequest method (wsdclient.h)

Sends a two-way request message using a synchronous call pattern.

Syntax

HRESULT SendTwoWayRequest(
  [in]           const void                             *pBody,
  [in]           const WSD_OPERATION                    *pOperation,
  [in, optional] const WSD_SYNCHRONOUS_RESPONSE_CONTEXT *pResponseContext
);

Parameters

[in] pBody

The body of the message.

[in] pOperation

Reference to a WSD_OPERATION structure that specifies the operation to perform.

[in, optional] pResponseContext

Reference to a WSD_SYNCHRONOUS_RESPONSE_CONTEXT structure or other context structure that specifies the context for handling the response to the request.

Return value

Possible return values include, but are not limited to, the following:

Return code Description
S_OK
Method completed successfully.
E_POINTER
pOperation is NULL.

Remarks

This method is normally only called by generated proxy code.

WSD_SYNCHRONOUS_RESPONSE_CONTEXT is used for the responseContext value when a synchronous call pattern is used.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdclient.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDEndpointProxy