Using the Merchant/400 API


Introduction

Merchant/400 API interfaces are provided for two different programming environments:

An OPM interface is provided by a program in library WWWSERVER.

The WWWMAPI service program in library WWWSERVER provides the ILE entry point. A bind directory named MBNDDIR in library WWWSERVER is provided to aid in developing ILE applications.

Files Provided to Aid your Development Effort

Includes are provided to aid in developing applications in the following programming environments:
ILE C
Prototypes and structures are provided for ILE C applications. See the member WWWMAPI in source file H (i.e., WWWMAPI.H) in library WWWSERVER for more information on ILE C interfaces. More information is also available in the topic that discusses calling the API from an ILE program.
ILE RPG
Constants that define ILE API entry points for ILE RPG applications are available in member DWWWMAPI in WWWSERVER/QRPGLESRC. More information is also available in the topic that discusses calling the API from an ILE program.
ILE COBOL
Data items that define ILE API entry points for ILE COBOL applications are available in member WWWMAPI in WWWSERVER/QCBLLESRC. More information is also available in the topic that discusses calling the API from an ILE program.
RPG
Data items that define API entry points for RPG/400 applications are available in member WWWMAPI in WWWSERVER/QRPGSRC. More information is also available in the topic that discusses calling the API from an OPM program.
COBOL
Data items that define API entry points for COBOL/400 applications are available in member WWWMAPI in WWWSERVER/QCBLSRC. More information is also available in the topic that discusses calling the API from an OPM program.
The section that discusses error conditions should also be reviewed when writing programs to access the API.