Server API functions - version 1.3 only

Server API functions can create a Web Services server in Genero BDL.

Warning:

These functions are valid for backward compatibility, but they are not the preferred way to handle Genero Web Services. See the com package for the preferred classes and methods for handling Web services.

Table 1. APIs to create a Web Services server in Genero BDL (version 1.3 only)
Name Description
fgl_ws_server_setNamespace(
   namespace VARCHAR )
Defines the namespace of the service on the Web and must be called first, before all other functions of the API.
fgl_ws_server_start(
   tcpPort VARCHAR )
Creates and starts the Web services server.
fgl_ws_server_publishFunction(
   operationName VARCHAR,
   inputNamespace VARCHAR,
   inputRecordName VARCHAR,
   outputNamespace VARCHAR,
   outputRecord VARCHAR,
   functionName VARCHAR)
Publishes the given BDL function as a Web-Function on the Web.
fgl_ws_server_generateWSDL(
   serviceName VARCHAR,
   serviceLocation VARCHAR,
   fileName VARCHAR )
  RETURNS INTEGER
Generates the WSDL file based on the BDL-server program.
fgl_ws_server_process(
   timeout INTEGER)
  RETURNS INTEGER
Waits for an incoming SOAP request for a given time (in seconds) and then processes the request, or returns, if there has been no request during the given time.
fgl_ws_server_setFault(
   faultMessage VARCHAR )
Return a SOAP fault string to the client at the end of the function's execution.
fgl_ws_server_getFault()
  RETURNS STRING
Retrieves the last fault string the user has set in a Web-Function, or an empty string if there is none.