<ws>return

NAME
SYNOPSIS
SYNTAX
DESCRIPTION

______________________________________________________________________________

NAME

<ws>return

SYNOPSIS

TWiST is a front-end toolkit for rapidly deploy Tcl procedures as a web service. The simplified API of TWiST consists of only three procedures: <ws>namespace, <ws>proc and <ws>return. The names reflect the underlying Tcl commands.

<ws>return Handles all requests and responses to the TWiST web service.

SYNTAX

<ws>return tclNamespace

_________________________________________________________________

DESCRIPTION

The TWiST API enables rapid deployment of Tcl procedures as a web service. Currently TWiST runs as an AOLserver module and uses AOLserver as the HTTP server for request and response. TWiST is non-invasive: the API is used in a Tcl script in the pageroot of the AOLserver. The location of the Tcl script file becomes the address of the web service. In addition, the developer does not have to modify any existing code. The TWiST API is best considered as a configuration of an interface. This allows the interface and the internal API to vary independently and maintains separation between code and configuration.

Once a web service is defined in a Tcl page via the TWiST API, visiting the page with a web browser will return a list of operations available, links to more information for each operation, and a link to the Web Service Description (WSDL) of the web service. The operation links can be followed to display an example SOAP Request to invoke the operation. This link also provides a form which can be used to submit parameter values, invoke the service and display the actual SOAP Request and SOAP Response.

<ws>return

The only useful value for tclNamespace is one which matches the preceeding calls to <ws>namespace and <ws>proc. This is the final command on a TWiST configuration/deployment page. The behavior of <ws>return depends entirely on the state of the Request including:

* the HTTP method (GET or POST),

* query variables during a GET,

* SOAPAction header during a POST, and

* any POSTed data