|
|||||
|
||||||
Related Syntax | Other Library Functions |
function |
wsb.create-server |
Library: Net, Web Services Broker (OMWSB)
Import: omwsb.xmd |
Return type: wbs.server Returns: A |
export external server function create-server on value integer port of-type value integer type default-min-threads value integer min-threads optional initial {1} default-max-threads value integer max-threads optional initial {50} max-queue-length value integer queue-length optional initial {25} timeout value integer timeout optional initial {2500}
Argument definitions
The wsb.create-server
function is used to create a WSB server which can then be used to accept requests on the specified port, identify known valid requests and deliver them to the service applications for handling. wsb.create-server
is used to set up the parameters necessary to manage the client services effectively.
You can use either the SOAP or XMLRPC protocol, or you can use a protocol of your own design, as long has that protocol uses an HTTP header to specify which action to perform. The type of protocol to be used is specified by the type
attribute. The value of the type parameter affects the service-name and type parameters meaning for the wsb.add-service
, wsb.remove-service
and wsb.service-exists
functions as follows:
You can specify a timeout value in milliseconds. The timeout value exists to ensure that an error on a connection does not tie up the server. The default value is 2500 milliseconds. A exception will be thrown if the specified time expires before an operation on the connection (read or write) completes.