IPWorks EDI 2020 Python Edition

Questions / Feedback?

process_request Method

Processes the EDI data, and generates the receipt.

Syntax

def process_request() -> None: ...

Remarks

Invoking ProcessRequest automates the entire AS2 server process. The method scans the request, determines the edi_data, and generates the mdn_receipt. In a server environment the receipt may be returned by invoking send_response.

The method's functionality is the same as the combined functionality of parse_request and create_mdn_receipt. The method's operation is controlled by ErrorProcessingFlags and ErrorReportingFlags, and scan_result will be populated as in parse_request.

The method will throw an exception, as parse_request does, if a problem is found while processing the request. However, if the problem does not prevent an MDN from being generated, mdn_receipt will still be generated before the exception is thrown. In all cases, the receipt will be suitable for returning to the client. If an exception is thrown, the mdn_receipt will provide more detail on the cause of the error.

The class will populate edi_data if no errors occurred scanning the request, or if ErrorProcessingFlags had been previously configured to allow the error.

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