SendCEMResponse Method

Sends a Certificate Exchange Messaging (CEM) response.

Syntax

ANSI (Cross Platform)
int SendCEMResponse(const char* lpszRequestId);

Unicode (Windows)
INT SendCEMResponse(LPCWSTR lpszRequestId);
- (void)sendCEMResponse:(NSString*)requestId;
#define MID_AS2SENDER_SENDCEMRESPONSE 10

IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_AS2Sender_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

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 (C++)

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 C++ Edition - Version 20.0 [Build 8203]