IPWorks EDI 2020 Python Edition

Questions / Feedback?

on_cem_request Event

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

Syntax

class AS2ReceiverCEMRequestEventParams(object):
  @property
  def request_id() -> str: ...
  @property
  def as_2_from() -> str: ...

# In class AS2Receiver:
@property
def on_cem_request() -> Callable[[AS2ReceiverCEMRequestEventParams], None]: ...
@on_cem_request.setter
def on_cem_request(event_hook: Callable[[AS2ReceiverCEMRequestEventParams], None]) -> None: ...

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 cem_details.

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

When this event fires the following cem_details properties are applicable:

To send a CEM response save the cem_details values and call send_cem_response with the AS2Sender class.

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