Compiling and Running a Web Service Application

The next step is to compile, then run your application.

Compilation

Compilation is the process of creating an executable program from source code. The source code for any DataFlex program needs to be compiled and linked into an executable (.exe) file before it can be executed (run).

  1. Click on the Compile Project button on the Studio's toolbar.

Compiling 64 vs 32 Bit Applications

Notice the combo form next to the compile button. This allows you to toggle compilation between 64 and 32 bit versions of your application. The toggle applies to both compiling and running the compiled application in the debugger.

You will see the embedded compiler display its progress in the Output window (if the Output window is not open, it will automatically open and move to the foreground when you compile).

The Compiler in Progress

You will see the Compiler including and compiling all the files specified in the source file being compiled. DataFlex automatically includes any predefined library files your project needs when you create a new program in the Studio. These library files are typically called packages or "package files" in DataFlex, since their extension is usually .pkg. See Package Filename Extensions for more information about packages.

Compiler Dependency Check

The compiler checks whether anything needs to be recompiled (dependency check -- see compiler options). If it detects that nothing has changed since the last compilation, you will see "No changes detected, skipping compile" in the Output window. You can force the Studio a recompilation by choosing "Rebuild <Project Name>" from the Project menu.

  1. Once compiled without errors (you will see "----Compile Finished----" in the Output window), you can run your program.

    Click the Run toolbar button.



     

    1. When the application runs, your browser should display the page below (http://localhost/GreetingWebService/Index.html).

Tip

admin and admin are the default Login Name and Password to enter the application; these are provided in the default Web App User table provided in a brand new workspace.

  1. You can enter admin and admin as the Login Name and Password (the password is case-sensitive) to enter the application. Now you can access the default user interface created for your web application.

 

You have just created and executed your first DataFlex Web Service application. You can see that this application is merely a container that can be compiled and executed. Any specific functionality for this application will be provided by web service objects (WSOs).

Close the browser to close the application.

 

Next Step

Creating Your First Web Service Function