Back to Contents


The Web Service class

Summary:

See also: The Genero Web Services COM  Extension Library


Syntax

The Web Service class provides an interface to create and manage Genero Web Services.

Note that status is set to zero after a successful method call.

Syntax

com.WebService

Methods

Class Methods
Name Description
com.WebService.createWebService(
  name
STRING,
  namespace
STRING )
 
 RETURNING com.WebService
Creates a WebService object by providing the mandatory name and namespace, which must be unique in the entire application.
Throws an exception in case of errors, and updates status with an error code.

Back to the top


Object Methods
Name Description
setComment(
  comment
STRING )
Adds a comment to a WebService; the comment will be visible in the generated WSDL file.
Throws an exception in case of errors, and updates status with an error code.
publishOperation(
  op com.WebOperation,
  role
STRING )
Publishes a WebOperation named op.  The role identifies the operation if several operations have the same name.
Throws an exception in case of errors, and updates status with an error code.
saveWSDL(
  location STRING )
  
RETURNING status
Saves the WSDL of the WebService to the file system; location is the URL where the service will be deployed.  Status is 0 if the file was saved, -1 if there was an error.
generateWSDL(
  location STRING )
  
RETURNING xml.DomDocument
Returns a xml.DomDocument representing the WSDL of the WebService; location is the URL where the service will be deployed.
Throws an exception in case of errors, and updates status with an error code.
createHeader(
  header Variable,
  encoded
INTEGER )
Creates a global Header of the WebService; header is any Variable defining the header, encoded specifies the encoding mechanism, where TRUE indicates the SOAP Section 5 encoding mechanism and FALSE the XML Schema mechanism. Since Headers are always in Document Style, set the encoded parameter to FALSE.
Throws an exception in case of errors, and updates status with an error code.

Back to the top