IPWorks EDI 2020 Python Edition

Questions / Feedback?

AS2ProfileMgr Class

Properties   Methods   Events   Configuration Settings   Errors  

The AS2ProfileMgr class is used to manage self and trading partner profiles used for AS2 communication.

Syntax

class ipworksedi.AS2ProfileMgr

Remarks

AS2 communication require management of several configuration settings such as encryption certificate, signing certificate and TLS/SSL certificates. Both for your self and your trading partners.

The AS2ProfileMgr class allows you to manage such settings using simple XML files, furthermore these configuration files can be directly fed to the AS2Sender and AS2Receiver Class as a convenient way to set communication parameters.

To use the AS2ProfileMgr you should first set data_dir to configure the directory that it will use to store the profiles. You can then set the properties to be retained and save them by invoking save_profile, alternatively you could retrieve previously saved settings using load_profile.

When a new trading partner profile is saved a sub-directory named after the trading partner is created within data_dir and the file partner.cfg is saved in it. If create_dir_struct is set to true, the following sub-directories are created within the partner directory. These can be helpful in managing other data for the trading partner.

dir_deletedDeleted files.
dir_incomingReceived files.
dir_logsLog files.
dir_outgoingFiles to be sent.
dir_pendingFiles pending async MDN.
dir_pending_infoFiles having data to verify async MSN.
dir_sentSent files.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

async_mdnurlThe URL for posting Async MDNs.
create_dir_structOption to create file management directories.
data_dirThe directory that the AS2ProfileMgr uses to store self and trading partner profiles.
dir_deletedThe directory used to store deleted files.
dir_incomingThe directory used to store incoming files.
dir_logsThe directory used to store log files.
dir_outgoingThe directory used to store outgoing files.
dir_pendingThe directory used to store files waiting for Async MDN.
dir_pending_infoThe directory used to store files containing data to verify Async MDN.
dir_sentThe directory used to store sent files.
emailYour email address.
encryption_cert_encodedThe certificate (PEM/base64 encoded).
encryption_cert_storeThe name of the certificate store for the client certificate.
encryption_cert_store_passwordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
encryption_cert_store_typeThe type of certificate store for this certificate.
encryption_cert_subjectThe subject of the certificate used for client authentication.
option_compressPreference to compress outgoing data.
option_encryptPreference to encrypt outgoing data.
option_signPreference to sign outgoing data.
organizationThe name of your, or your trading partner's organization.
partner_countThe number of partners found in DataDir .
request_mdnPreference to receive MDNs from trading partner.
request_mdn_signedPreference to request for signed MDNs.
request_mdn_synchronousPreference to request for synchronous MDNs.
require_encryptPreference to receive encrypted messages.
require_signPreference to receive signed messages.
signing_cert_encodedThe certificate (PEM/base64 encoded).
signing_cert_storeThe name of the certificate store for the client certificate.
signing_cert_store_passwordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
signing_cert_store_typeThe type of certificate store for this certificate.
signing_cert_subjectThe subject of the certificate used for client authentication.
ssl_cert_encodedThe certificate (PEM/base64 encoded).
ssl_cert_storeThe name of the certificate store for the client certificate.
ssl_cert_store_passwordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
ssl_cert_store_typeThe type of certificate store for this certificate.
ssl_cert_subjectThe subject of the certificate used for client authentication.
urlThe URL for posting EDI data.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

configSets or retrieves a configuration setting.
delete_profileDeletes the configuration of the specified partner.
get_propertyGets the property propName .
get_tp_infoGets the profile of the specified partner as a XML TPInfo.
list_partnersLists trading partners known to the AS2ProfileMgr .
list_propertiesLists the properties read from self or partner profile.
load_profileLoads the profile of the trading partner identified by partnerOrganization .
resetResets the state of the control.
save_profileSaves the profile of the trading partner identified by partnerOrganization .
set_propertySets the property propName to propValue .

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

on_errorInformation about errors during data delivery.
on_partnerFired when ListPartners is invoked.
on_partner_directoryFired before accessing partner.cfg of a trading partner.
on_propertyFired when ListProperties is invoked.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
ProcessIdleEventsWhether the class uses its internal event loop to process events when the main thread is idle.
SelectWaitMillisThe length of time in milliseconds the class will wait when DoEvents is called if there are no events to process.
UseInternalSecurityAPITells the class whether or not to use the system security libraries or an internal implementation.

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