IPWorks EDI 2020 Python Edition

Questions / Feedback?

parse_request Method

Parses the EDI message and determines the EDIData .

Syntax

def parse_request() -> None: ...

Remarks

Processes the EDI message in the request (either from the HTTP context, or as given by request and possibly request_headers_string). If the message is encrypted, it will be decrypted with the certificate specified in certificate. If it is signed, the signature will be verified against the certificate specified in signer_cert.

If the message is scanned without difficulty, edi_data will be populated. If a problem occurs, an exception will be thrown. This might occur if the client used or requested unsupported algorithms or data formats. In this case, edi_data will not be determined.

The class may be configured to ignore certain errors by setting ErrorProcessingFlags. This will allow the message to be processed and edi_data to be determined. If any errors occur, an exception will be thrown and the scan_result property will reflect the error condition.

Whether or not an exception is thrown, an mdn_receipt may be generated by invoking create_mdn_receipt. In the case of a successful scan mdn_receipt will report the success, otherwise the receipt will provide information to the client about the error.

process_request may be used to scan and create the receipt in one step. read_request may be used to scan the request headers only to obtain details that can be used to configure the correct settings for the partner.

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