save_profile Method
Saves the profile of the trading partner identified by partnerOrganization .
Syntax
def save_profile(partner_organization: str) -> None: ...
Remarks
If the partnerOrganization is not "self", the properties of AS2ProfileMgr are saved to the XML file partner.cfg placed in a sub-directory within data_dir. The name of the sub-directory is derived from partnerOrganization. In addition to saving the partner profile, SaveProfile also creates the following directories if create_dir_struct is set to true.
dir_deleted | Deleted files. |
dir_incoming | Received files. |
dir_logs | Log files. |
dir_outgoing | Files to be sent. |
dir_pending | Files pending async MDN. |
dir_pending_info | Files having data to verify async MSN. |
dir_sent | Sent files. |
Although any number of properties may be saved to the partner profile, the following are interpreted by AS2Sender and AS2Receiver classes.
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 saved to the XML file me.cfg placed in data_dir.
Although any number of properties may be saved to the self profile, the following are interpreted by AS2Sender and AS2Receiver classes.
My Settings
- organization
- url
- encryption_cert
- signing_cert
- ssl_cert
- async_mdnurl
Note: "self" cannot be the name of a trading partner organization.