The WebService module exposes two methods for use during web service deployment, SetWSDL and RemWSDL. The first performs the attachment of a WSDL to a Realm and the second disconnects such an attachment if it exists. Please follow the links provided for the technical details related to using these functions.
SetWSDL connects a Realm with a WSDL file and a set of VTS modules in order to enable a web service interface. Linkage is first applied between the WSDL file and the VTS modules by generating an XML schema using the WSDL and the parameters provided to this function. The Realm’s address is then registered with the VTS HTTP server to connect the whole thing to the network.
A prototype for a call to the SetWSDL function is listed below. It will return 0 for success and 1 for failure.
\System\WebService\SetWSDL(<WSDL File Path>,
<Realm>,
<Call Scope>,
<Service>,
<pResponse>);
RemWSDL disconnects a Realm from a WSDL file and the associated set of VTS modules; it then proceeds to clean up any resources consumed by the web service that this association represented. After RemWSDL is called, the associated web service will immediately stop processing messages. Note, however, that any operations set in motion by that service will run to completion. This function is called implicitly if the connected module is destroyed.
A prototype for a call to the RemWSDL function is listed below:
\System\WebService\RemWSDL(<Realm>);
RemWSDL
must be called in a script.