EDI Integrator 2016 Node.js Edition
EDI Integrator 2016 Node.js Edition
Questions / Feedback?

LoadProfile Method

Loads the profile of the trading partner identified by partnerOrganization .

Syntax

profilemgr.loadProfile(partnerOrganization, [callback])

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for this method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

If the partnerOrganization is not "self", the properties of ProfileMgr are read from the XML file partner.cfg. The file is expected to be in a sub-directory within DataDir. 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

If the partnerOrganization specified is "self", the properties of ProfileMgr are read from the XML file me.cfg. The file is expected to be in DataDir.

Although all properties are read from the self profile, the following are interpreted by AS2Sender and AS2Receiver classs.

My Settings

Note: "self" cannot be the name of a trading partner organization.

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
EDI Integrator 2016 Node.js Edition - Version 16.0 [Build 7240]