Integratec API Platform
OPAPI OPBOOL opClientConnectionSendRecvDelete ( OPAPIHandle  connection,
wchar_t *  serviceId,
wchar_t *  request,
int32_t  timeoutMs,
wchar_t **  reply,
wchar_t **  errorMsg 
)

Sends a request and waits for the reply.

Parameters
[in]connectionHandle representing a client connection.
[in]serviceIdIdentifier of the service that handles the request.
[in]requestRequest data in JSON format.
[in]timeoutMsTimeout interval in milliseconds.
[out]replyReply data in JSON format.
[out]errorMsgError message describing the failure, set if the function fails.
Returns
If the function succeeds, the return value is non-zero and reply is set to the reply data in JSON format.
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.
If a reply is not available within the timeout interval specified by the timeoutMs parameter, the functions fails. If the value of the timeoutMs parameter is negative or zero, the default timeout interval of 2500 milliseconds is used.
Calling this function is equivalent to calling opClientConnectionSendRequest, then opClientConnectionReceiveReply, then opClientConnectionDeleteRequest.
See also
opClientConnectionDeleteRequest, opClientConnectionOpen, opClientConnectionReceiveReply and opClientConnectionSendRequest.