load_profile Method
Loads the profile of the trading partner identified by partnerOrganization .
Syntax
def load_profile(partner_organization: str) -> None: ...
Remarks
If the partnerOrganization is not "self", the properties of AS2ProfileMgr are read from the XML file partner.cfg. The file is expected to be in a sub-directory within data_dir. The name of the sub-directory is derived from partnerOrganization.
Although all properties are read from the partner profile, the following are interpreted by AS2Sender and AS2Receiver classs.
Partner Settings
- organization
- url
- option_sign
- option_encrypt
- option_compress
- require_sign
- require_encrypt
- request_mdn
- request_mdn_signed
- request_mdn_synchronous
- encryption_cert
- signing_cert
- ssl_cert
If the partnerOrganization specified is "self", the properties of AS2ProfileMgr are read from the XML file me.cfg. The file is expected to be in data_dir.
Although all properties are read from the self profile, the following are interpreted by AS2Sender and AS2Receiver classs.
My Settings
- organization
- url
- encryption_cert
- signing_cert
- ssl_cert
- async_mdnurl
Note: "self" cannot be the name of a trading partner organization.