Creating a Web Service Application

Let's create your first, very simple Web Service application with DataFlex.

Web Application

A Web Application is a DataFlex program that hosts WBOs (Web Browser Objects) or WSOs (Web Service Objects) that serve data to client ASP (Active Server Pages) pages or Web Service client applications.

 

Important!

This section requires that a GreetingWebService workspace was created and assumes that you will follow the Creating Your First Web Service tutorial step by step, in which case, you will have already created the GreetingWebService workspace.

If this is not the case, switch to the Creating a Workspace step now and return here when you have completed it.

 

 

Creating a Web Service Application

  1. Click on the Create New button on the Studio’s toolbar.

  2. Click on the Project tab of the Create New... dialog.

  3. Double click the Desktop Web Project icon.

  4. Click Yes to continue on the user account control (UAC) message:



    Click Yes to continue.

  5. The "Assign Web Application Information" dialog will open. Accept the defaults for Web Application Name (GreetingWebService) and Virtual Directory Name (GreetingWebService) and click the Ok button.


     

Virtual Directory

The Virtual Directory maps the AppHtml folder (which contains the web application's HTML files, the client (JavaScript) library, and the theme (CSS) files) of your workspace with a Uniform Resource Locator (URL) to allow users to access these files over the Web. Keep in mind that you are setting the name of the virtual directory, not the name of your Web application.

  1. It may take a minute or two for the Web App to be created. You will see a dialog showing you what is happening, with messages like "Copying client engine". This is being done for any web application, in case you want to use it to host a browser-based web application.

  2. You will now see the source code of a new Web application in the Studio.

 

You have now created your first Web application. Of course, at this point, the application is only an empty container. Soon, you will learn how to add web service objects (WSOs) and other components to it.

 

 

Next Step

Compiling and Running a Web Service