Creating a Web Service
Creating a Web Service
You can create web services in any of the following ways:
-
By creating a new class or editing an existing class to follow the requirements described earlier in this topic
You can also generate stub classes programmatically from a WSDL, using the same method via which you can generate web clients.
Subclassing an Existing InterSystems IRIS Web Service
You can create a web service by creating a subclass of an existing InterSystems IRIS web service class and then adding the SOAPMETHODINHERITANCE parameter to your class as follows:
PARAMETER SOAPMETHODINHERITANCE = 1;
The default for this parameter is 0. If this parameter is 0, your class does not inherit the web methods as web methods. That is, the methods are available as ordinary methods but cannot be accessed as web methods within the web service defined by the subclass.
If you set this parameter to 1, then your class can use web methods defined in any superclasses that are web services.