IPWorks EDI 2020 Node.js Edition

Questions / Feedback?

SendCEMResponse Method

Sends a Certificate Exchange Messaging (CEM) response.

Syntax

as2sender.sendCEMResponse(requestId, [callback])

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for this method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

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.

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