D 2012-10-31T06:26:11.098 L Embedding P 7bf719cbdf06b797153b69dd8cbed63d2232db78 U gerald W 3283

Contents

Loading the Webservices Server Package

To load the webservices server package, do:

 package require WS::Embedded

This command will only load the server the first time it is used, so it causes no ill effects to put this in each file declaring a service or service procedure.


Specify a Port to Receive Request on

Procedure Name : ::WS::Embeded::Listen

Description : Instruct the module to listen on a Port, security information.

Arguments : this procedure uses position dependent arguments, they are:

     port     -- Port number to listen on.
     certfile -- Name of the certificate file. Defaults to {}.
     keyfile  -- Name of the key file. Defaults to {}.
     userpwds -- A list of username and passwords. Defaults to {}.
     realm    -- The seucrity realm. Defaults to {}.
     logger   -- A logging routines for errors. Defaults to ::WS::Embeded::logger.

Returns : Nothing

Side-Effects : None

Exception Conditions :  : None

Pre-requisite Conditions : None


Start Listening for Requests

Procedure Name : ::WS::Embeded::Start

Description : Start listening on all ports (i.e. enter the event loop).

Arguments : None

Returns : Value that event loop was exited with.

Side-Effects : Nothing

Exception Conditions : None

Pre-requisite Conditions : 


Stop Listening for Requests

Procedure Name : ::WS::Embeded::Stop

Description : Stop listening on all ports (i.e. enter the event loop).

Arguments :

    value -- Value that ::WS::Embedded::Start should return

Returns : Nothing

Side-Effects : Nothing

Exception Conditions : None

Pre-requisite Conditions : 

Z 4e4f0c75ee604ad573a5ea9a8d720886