Integratec API Platform
OPAPI OPBOOL opClientConnectionSendRequest ( OPAPIHandle  connection,
wchar_t *  serviceId,
wchar_t *  request,
wchar_t **  requestId,
wchar_t **  errorMsg 
)

Sends an asynchronous request.

Parameters
[in]connectionHandle representing a client connection.
[in]serviceIdIdentifier of the service that handles the request.
[in]requestRequest data in JSON format.
[out]requestIdUnique identifier for the request.
[out]errorMsgError message describing the failure, set if the function fails.
Returns
If the function succeeds, the return value is non-zero and requestId is set to a unique identifier for the request.
If the function fails, the return value is zero and errorMsg is set to an error message describing the failure.
Usage
Specify a client connection handle that was returned by a call to opClientConnectionOpen using the connection parameter. Specify the request using the serviceId and request parameters.
Attention
Delete the record of the request using opClientConnectionDeleteRequest when you no longer need to receive a reply for the request.
See also
opClientConnectionDeleteRequest and opClientConnectionOpen.