LoadProfile Method

Loads the profile of the trading partner identified by partnerOrganization .

Syntax

ANSI (Cross Platform)
int LoadProfile(const char* lpszpartnerOrganization);

Unicode (Windows)
INT LoadProfile(LPCWSTR lpszpartnerOrganization);
- (void)loadProfile:(NSString*)partnerOrganization;
#define MID_AS2PROFILEMGR_LOADPROFILE 8

IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_AS2ProfileMgr_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

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 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 AS2ProfileMgr 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.

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

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