com.WebServices methods

Methods for the com.WebService class.

Table 1. Class methods
Name Description
com.WebService.CreateStatefulWebService(
   name STRING,
   namespace STRING,
   state state-type )
  RETURNING result com.WebService
Creates a new object to implement a stateful Web Service.
com.WebService.CreateWebService(
   name STRING,
   namespace STRING )
  RETURNING result com.WebService
Creates a new object to implement a Web Service.
Table 2. Object methods
Name Description
createFault(
   fault fault-type,
   encoded BOOLEAN )
Creates a new object to implement a Web Service.
createHeader(
   header header-type,
   encoded BOOLEAN )
Defines the header for the Web Service object.
generateWSDL(
   location STRING )
  RETURNING result xml.DomDocument
Creates a xml.DomDocument object with the WSDL corresponding to the Web Service object.
publishOperation(
   operation com.WebOperation,
   role STRING )
Publishes a Web Operation.
registerInputHTTPVariable(
   http-in http-in-type )
Registers the record variable for HTTP input.
registerInputRequestHandler(
   funcname STRING )
Registers the function to be executed on incoming SOAP requests.
registerOutputHTTPVariable(
   http-out http-out-type )
Registers the record variable for HTTP output.
registerOutputRequestHandler(
   funcname STRING )
Registers the function to be executed just before the SOAP response is forwarded to the client.
registerWSDLHandler(
   funcname STRING )
Registers the function to be executed when a WSDL is generated.
saveWSDL(
   location STRING )
  RETURNING result INTEGER
Writes to a file the WSDL corresponding to the Web Service object.
setComment(
   comment STRING )
Defines the comment for the Web Service object.
setFeature(
   name STRING,
   value STRING )
Defines a feature for the current Web Service object.