com.WebService.registerWSDLHandler

Registers the function to be executed when a WSDL is generated.

Syntax

registerWSDLHandler(
   funcname STRING )
  1. funcname is the name of a program function.

Usage

The registerWSDLHandler() method registers a function to be called when the WSDL of the current Web Service object is generated.

The callback function must be defined with a unique parameter of type xml.DomDocument, and must return the reference to this object:
FUNCTION myWSDLHandler( wsdl )
    DEFINE wsdl xml.DomDocument
    ...
    RETURN wsdl
END FUNCTION

The callback function typically modifies the content of the WSDL DOM document object passed as parameter.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).