Framework EDI ISAPI Extension Console

The Framework EDI (FREDI) ISAPI Console is a small utility program that is used in conjunction with the Framework EDI AS2 ISAPI Extension on the HTTP server.  The program itself has to be on the HTTP server where the ISAPI Extension DLL resides.  Basically, the console helps maintain the following:

 

Settings

The following settings in the console control the behavior of the FREDI ISAPI Extension.  These settings are situated on the tabbed dialog labeled "Settings" on the console.

 

The settings are categorized into the following:

 

General Settings

The general settings control basic internal operation of the FREDI ISAPI Extension.

 

ActiveX Server Settings

The ActiveX Server Settings control how the FREDI ISAPI Extension operates with the custom ActiveX component.

 

Debug Logging

This setting allows the internal operation of the FREDI ISAPI Extension to be logged to an external file.  To allow the extension to log, under the "Debug Logging" group take the following steps:

 

 

ActiveX Test

The ActiveX test feature of the console helps test the method of the interface in the ActiveX component.  The interface is specified by the programmatic ID.  The tabbed dialog is labeled "ActiveX Test" in the console.

 

To test the ActiveX, follow these steps:

  1. Prog ID.  Enter the program identifier of the interface in the ActiveX to instantiate (e.g. IsapiSample.Test).  Then click the button Load.  If the interface loads up successfully the edit boxes in the dialog will be enabled.

     

  2. File Name.  Enter the file name to be processed by the ActiveX component's methods.  The methods that require the file name parameter have to follow the syntax:

    <lReturnValue> = <Object>.<MethodName>(<sFileName>,<sAnyString>)

    The file name is passed in the parameter sFileName.  For detailed information please see Framework EDI AS2 ISAPI Extension.

     

  3. Parameters.  Enter the additional parameters passed to the methods.  In the syntax shown above, the parameter is passed in the method parameter sAnyString.

     

  4. Process Method.  Enter the name of the Process method used by the ActiveX interface, and then click the button Test.  The method is invoked and the file name and parameters specified in steps 2 and 3 above are passed to the method.  If this method executes properly, the result of the method is displayed in the RESULT box and the ActiveX method dispatch ID is displayed in the DISPID box.  NOTE:  This is the first method called by FREDI ISAPI Extension and should be invoked before the Return or Final methods.  For details, please see "The Processing Method" in Framework EDI ISAPI Extension.

     

  5. Return Method.  Enter the name of the Return method used by the ActiveX interface, and then click the button Test.  This method should return a string value as a result of executing the Process method in step 4 above.  If this method executes properly, the result of the method is displayed in the RESULT box and the ActiveX method dispatch ID is displayed in the DISPID box.  For details, please see "The Result Method" in Framework EDI ISAPI Extension.

     

  6. Final Method.  Enter the name of the Final method used by the ActiveX interface, and then click the button Test.  The method is invoked and the file name and parameters specified in steps 2 and 3 above are passed to the method.  This method is the last method called by FREDI ISAPI Extension and is called after the server has disconnected from the client.  If this method executes properly, the result of the method is displayed in the RESULT box and the ActiveX method dispatch ID is displayed in the DISPID box.  For details, please see "The Final Method" in Framework EDI ISAPI Extension.

 

Example ActiveX Test

To demonstrate how to test an ActiveX, follow these steps:

  1. Download the sample Visual Basic program IsapiActiveX.  Compile the program to produce the ActiveX DLL and then register the DLL.
  2. Launch the ISAPI Extension Console from the menu.
  3. Enter "IsapiActiveX.Sample" in the Prog ID edit box, then click Load button.
  4. Browse the file "SampleMsg.txt" that comes with the sample program, and select the file as the File Name selection.
  5.  

  6. Enter the name of the Process Method in the IsapiActiveX component, which is "ProcessProc".  Then click Test.
  7.  

  8. Enter the name of the Return Method in the IsapiActiveX component, which is "ReturnProc".  Then click Test.
  9.  

  10. Enter the name of the Final Method in the IsapiActiveX component, which is "FinalProc".  Then click Test.