Share via


IWSDEndpointProxy::SendTwoWayRequest (Compact 2013)

3/26/2014

This method sends a two-way request message using a synchronous call pattern.

Syntax

HRESULT SendTwoWayRequest(
  const void* pBody,
  const WSD_OPERATION* pOperation,
  WSD_SYNCHRONOUS_RESPONSE_CONTEXT* pResponseContext
);

Parameters

  • pBody
    [in] The body of the message.
  • pOperation
    [in] Reference to a WSD_OPERATION structure that specifies the operation to perform.
  • pResponseContext
    [in, optional] 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

The following table shows the possible error code return values.

Error code

Description

S_OK

This 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

Header

wsdapi.h

Library

wsdapi.lib

See Also

Reference

IWSDEndpointProxy
Web Services on Devices Interfaces