CEMRequest Event

Fired when a Certificate Exchange Messaging (CEM) request is received.

Syntax

ANSI (Cross Platform)
virtual int FireCEMRequest(AS2ReceiverCEMRequestEventParams *e);
typedef struct {
const char *RequestId;
const char *As2From; int reserved; } AS2ReceiverCEMRequestEventParams; Unicode (Windows) virtual INT FireCEMRequest(AS2ReceiverCEMRequestEventParams *e);
typedef struct {
LPCWSTR RequestId;
LPCWSTR As2From; INT reserved; } AS2ReceiverCEMRequestEventParams;
- (void)onCEMRequest:(NSString*)requestId :(NSString*)as2From;
#define EID_AS2RECEIVER_CEMREQUEST 1

virtual INT IPWORKSEDI_CALL FireCEMRequest(LPSTR &lpszRequestId, LPSTR &lpszAs2From);

Remarks

This event fires when a Certificate Exchange Messaging (CEM) request is received.

RequestId is the CEM request Id. This must be saved and will be used when sending the CEM response.

As2From identifies the sender of the CEM request.

If CEMCertDir is set the received certificates will be written to the specified location. If CEMCertDir is not set the certificates will be held in memory and may be accessed by inspecting CEMDetails.

The CEM request also populates CEMRespondByDate and CEMResponseURL. CEMRespondByDate specifies the date by which the sender expects a response. CEMResponseURL specifies the URL to which the CEM response should be sent.

When this event fires the following CEMDetails properties are applicable:

To send a CEM response save the CEMDetails values and call SendCEMResponse with the AS2Sender class.

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