Retrieving M3 API descriptions
The model retriever for M3 is capable of retrieving details about any or all of the M3 APIs in use on a given M3 installation (including customization details). However, because of the large number of APIs available, the model file for M3 can become very large, thereby interfering with the performance of your application. You should therefore retrieve only those APIs that you are planning to use in your web application.
To use the M3 model retriever
The model file is saved in a sub-folder of the Working Folder for your application and is named after the name you gave to the M3 data source. For example, if you named your data source "myM3", then the data model for it would be:
<Working Folder>\datasources\myM3.mod
The model file is saved in XML format, so you can view it with any text or XML editor (or even with a web browser). It contains details about the following:
Which programs and transactions are available with the APIs you have selected.
The input parameters required for each transaction and the rules for arranging these into an input command. Input strings must be of a fixed length in which requests, parameters and other input are specified at specific locations.
The output fields returned by each transaction.
This information will be useful as you design the business objects that will interact with M3 and the mapping files to connect these objects to the API (see below).
Do not edit the model file manually. The details it contains are required in order for the communication to work correctly. Among other things, the definitions for how to compose the input strings are used to format the input parameters submitted by your business objects.