Summary:
See also: The Genero Web Services COM Library
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.
com.WebService
Class Methods | |
Name | Description |
com.WebService.createWebService(
|
Creates a WebService object by providing the mandatory
name and namespace, which must be unique across the entire
application.
Throws an exception in case of errors, and updates status with an error code. |
com.WebService.CreateStatefulWebService(
|
Creates a stateful WebService object by providing the mandatory
name and namespace (which must be unique across the entire application) and a
state variable used to identify the state between the client and the
server.
Throws an exception in case of errors, and updates status with an error code. See Stateful services. |
Object Methods | |
Name | Description |
setComment( |
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( |
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(
|
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( |
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( |
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. |
createFault( |
Creates a global Fault this WebService can raise; fault is any Variable defining the fault, encoded specifies the encoding mechanism, where TRUE indicates the SOAP Section 5
encoding mechanism and FALSE the XML Schema mechanism.
Throws an exception in case of errors, and updates status with an error code. |
registerWsdlHandler(
|
Registers a 4GL function executed when a WSDL is generated.
The 4GL function must have one input and one output parameter of type xml.DomDocument;
the system provides the generated WSDL as input parameter, and you must return it (after modification) to fulfill the WSDL generation process.
Throws an exception in case of errors, and updates status with an error code. See example 1. |
registerInputRequestHandler(
|
Registers a 4GL function executed when an incoming SOAP request is received and before the SOAP engine has processed it.
The 4GL function must have one input and one output parameter of type xml.DomDocument;
the XML SOAP request is provided as input parameter, and you must return it (after modification) to fulfill the SOAP request processing.
Throws an exception in case of errors, and updates status with an error code. See example 2. |
registerOutputRequestHandler(
|
Registers a 4GL function executed just after the SOAP engine has processed it and before the SOAP response is forwarded to the client.
The 4GL function must have one input and one output parameter of type xml.DomDocument;
the XML SOAP response is provided as input parameter, and you must return it (after modification) to fulfill the SOAP response processing.
Throws an exception in case of errors, and updates status with an error code. Note: If NULL is returned from the input callback, the output callback will be called with the default SOAP fault node, that you can then modify. See example 3. |
setFeature(
|
Sets a feature for that web service, where feature is one of the name
in the list of supported Web Service Features, and value a valid value for the feature to be set.
Throws an exception in case of errors, and updates status with an error code. |
Name | Description |
Soap1.1 | Defines whether the web service supports the SOAP 1.1 protocol. Default value is FALSE. |
Soap1.2 | Defines whether the web service supports the SOAP 1.2 protocol. Default value is FALSE. |
WS-Addressing1.0 | Defines whether the web service supports WS-Addressing 1.0. Valid values
include:
|