Annotate your source in Progress Developer Studio for OpenEdge to provide the information required to create your native invocation file.

Note: There are other methods to create native invocation files, such as ProxyGen, but creating them from the annotated source is the preferred method. For more information on ProxyGen, see Use the Open Client Toolkit.

To annotate your source:

  1. Start Progress Developer Studio for OpenEdge and open your source file.
    Note: Your source file must be in a project. For information about projects, see: Progress Developer Studio for OpenEdge Online Help.
  2. Right-click the project, and select Progress OpenEdge > Define Service Interface. The Define Service Interface dialog box appears.
  3. Select ESB from the Definition mode drop-down list.
  4. Select the procedure file and click Finish.
The following is the annotated source:
@openapi.openedge.export FILE(type="ESB", esboeFilename="%FILENAME%", 
useReturnValue="false", writeDataSetBeforeImage="false", executionMode="external").
DEF INPUT PARAM customerNumber AS INTEGER.
DEF OUTPUT PARAM customerName AS CHAR.
IF CONNECTED("sports2000") THEN DO:
   FIND FIRST customer WHERE custNum = customerNumber NO-LOCK NO-ERROR.
   IF AVAILABLE customer THEN
      customerName = Name.
   ELSE
       customerName = "No record".
   MESSAGE "CustomerName = " customerName SKIP.
END.