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

Note: There are other methods of creating native invocation files, such as ProxyGen, but creating them from annotated source is the preferred method.

To annotate your source:

  1. Start Developer Studio and open your source file.
    Note: Your source file must be in a project. For information on projects, see: Progress Developer Studio for OpenEdge Online Help.
  2. Right-click on the project and select Progress OpenEdge > Define Service Interface.
  3. The Define Service Interface dialog box appears. Select ESB from the Definition mode drop-down.
  4. Select the procedure file and click Finish.
  5. The annotated source follows:
    @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.