fgl_ws_server_generateWSDL() (version 1.3)

Generates the WSDL file based on the BDL-server program.

Note: This function is valid for backwards compatibility, but is not a preferred way to handle Genero Web Services. See the com package for the preferred classes and methods for handling Web services.

Syntax

fgl_ws_server_generateWSDL(
   serviceName VARCHAR,
   serviceLocation VARCHAR,
   fileName VARCHAR )
  RETURNS INTEGER
  1. serviceName is the name of the web service.
  2. serviceLocation is the URL of the server.
  3. fileName is the name of the file that will be generated.

Usage

The function returns:
  • 0 if the file has been correctly generated.
  • Any other values if the operation has failed.

Example

DEFINE mystatus INTEGER

LET mystatus=fgl_ws_server_generateWSDL(
 "CustomerService",
 "http://localhost:8080",
 "C:/mydirectory/myfile.wsdl")

IF mystatus=0 THEN
  DISPLAY "Generation of WSDL done..."
ELSE
  DISPLAY "Generation of WSDL failed!"
END IF