FoxISAPI Automation Server Samples
Visual FoxPro includes an ISAPI extension called Foxisapi.dll that makes it possible for you to access Visual FoxPro custom Automation servers from any ISAPI supported web server such as Microsoft Internet Information Server and Microsoft Personal Web Server. The FoxISAPI extension works by creating an instance of a Visual FoxPro automation server and then calling a method on that server that returns HTML. The HTML is passed from the web server back to a Web browser such as Microsoft Internet Explorer.
Visual FoxPro includes two FoxISAPI automation server samples that demonstrate how you can use the power of Visual FoxPro to dynamically support a web site. The first sample, FoxWeb, located in the Samples\Servers\FoxIsapi\FoxWeb folder, is a simple sample designed to demonstrate basic FoxISAPI concepts. This sample steps you through the process of setup and deployment of FoxISAPI servers, both local and remotely. In addition, the sample walks through steps needed to implement pooling of servers for improved scalability.
The second sample, FoxIs, located in the Samples\Servers\FoxIsapi\FoxIs folder, is a more complex sample that contains routines to map visual and functional content of a Visual FoxPro form to HTML. The concepts are the same as FoxWeb; FoxISAPI instantiates a server and invokes a method to return HTML. Because the FoxIs sample uses a visual form, it offers additional versatility by making it possible for you to run it as a stand-alone program, from OLE clients, and from a Web browser.
If you're not familiar with creating Visual FoxPro Automation servers, see Creating Automation Servers.
FoxISAPI Components
The following table lists the core FoxWeb Automation server sample files and a description of each.
File | Description |
---|---|
Foxisapi.dll | The main component of the FoxISAPI Automation server samples, FoxWeb and FoxIs. Foxisapi.dll is used with the Microsoft Internet Information Server or the Microsoft Personal Web Server. Foxisapi.dll creates an instance of a Visual FoxPro Automation server and executes a method on that server. The method then returns the HTML displayed in the Web browser. Foxisapi.dll is used primarily with Visual FoxPro; however, it can be used with any Automation server. |
Foxisapi.ini | An initialization file for Foxisapi.dll file that makes it possible for you to configure Foxisapi.dll. |
Odebug.prg | A Visual FoxPro program used for debugging your Internet applications. |
Configuring FoxISAPI Components
To install the core FoxISAPI components, follow these steps:
- Copy the Foxisapi.dll and Foxisapi.ini files to your web server's script folder. For example, C:\InetPub\scripts\.
- Copy the Oldebug.prg program file to your Visual FoxPro root folder (the location returned by HOME( ) function). For example, C:\Program Files\Microsoft Visual FoxPro\.
See Also
FoxWeb, a Simplified Visual FoxPro Internet Automation Server | FoxIs, a Visual FoxPro Internet Server | Solutions Samples | Server Samples