Skip to content

Class: cWebAppBasic

Properties | Events | Methods | Index of Classes

Outermost container for Web Framework Basic applications

Hierarchy

cObject > cWebAppBasic

Show full hierarchy and direct subclasses

Library: Web Application Class Library

Package: cWebAppBasic.pkg

Mixins: cWebAppBase_Mixin, cWebEndPoint_Mixin

Description

cWebAppBasic is the class for the outermost container object of all other web server objects in a basic web application.

There will be one and only one cWebAppBasic object per web application. When you run the "Basic Web Project" wizard in the Studio, it will create a WebApp.src file containing a cWebAppBasic object.

The cWebAppBasic object wraps your application's web server objects - Web services (cWebService), low level HTTP services (cWebHttpHandler), ASP page services (cWebASPClassicObject) and helper web components (cWebComponent). If your application only uses these web server components it is a "basic" web application and you may use the cWebAppBasic class to wrap these components. If your application uses the web framework's UI components - Web Views (cWebView), Web Dialogs (cWebModalDialog) and the main menu and toolbar system (cWebCommandBar), then your application should use the cWebApp class as its main wrapper object.

See Web Application Types for a description of the different web application types.

The global variable ghoWebApp stores the cWebAppBasic object handle. Use this to send messages and get and set properties of the cWebAppBasic object from any other object in your application.

Sample: Basic Style

This sample demonstrates a basic web application object (cWebAppBasic) containing two SOAP web service components (cWebService), a low level HTTP request handler (cWebHttpHandler), an Active Server Page handler (cWebAspClassicObject) and a web helper component (cWebComponent).

Use AllWebAppClasses.pkg

Object oApplication is a cApplication

    Object oConnection is a cConnection
        Use LoginEncryption.pkg
    End_Object

End_Object

Object oWebApp is a cWebAppBasic
    // Use statements for Web Server components are located here
    Use MyWebService.wo         // cWebService
    Use MyOtherWebService.wo    // cWebService
    Use MyHttpHandler.wo        // cWebHttpHandler
    Use MyAspPageHandler.wo     // cWebAspClassicHandler
    Use MyWebComponentHelper.wo // cWebComponent
End_Object

Send StartWebApp of ghoWebApp