SendCEMResponse Method

Sends a Certificate Exchange Messaging (CEM) response.

Syntax

int SendCEMResponse(const QString& qsRequestId);

Remarks

This method send the Certificate Exchange Messaging (CEM) request with the details specified in CEMDetails.

A CEM request must have previously been received using AS2Receiver. To send the CEM response, populate CEMDetails with the certificate information and decide whether to accept or reject the request. The following properties may be set to specify the certificate:

Alternatively, the certificate information may be set:

After specifying the certificate information choose whether to accept or reject the request. To accept the request set CEMAccepted to True. To reject the request set CEMAccepted to False and specify a reason in CEMRejectionReason.

Call SendCEMResponse and pass the CEM request Id that was retrieved from the request.

Error Handling

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Qt Edition - Version 20.0 [Build 8203]