Caché Web Service Producer Requirements
A Caché class that defines a Web Service must satisfy the following requirements:
-
The Caché class extends %SOAP.WebServiceOpens in a new tab. Notice that this class extends %CSP.PageOpens in a new tab.
-
Any method to be exposed as a Web Service must include the WebMethod keyword in its declaration.
-
Any Caché objects returned by the Web Service's methods or used as arguments to the Web Service's methods must be “XML enabled.” That is, they must be instances of classes that extend %XML.AdaptorOpens in a new tab.
Classes that extend %SOAP.WebServiceOpens in a new tab must provide values for the following parameters. These parameters specify important characteristics of the Web Service.
Parameter | Description and Values |
---|---|
NAMESPACE | The value of this parameter is a URI. It provides a namespace for the service, so that its name does not conflict with that of another service. By default, Caché assigns the value http://tempuri.org. Developers traditionally use this value during Web Service development. It should be changed prior to deployment. |
SERVICENAME | The value of this parameter provides the client's name for the service. It should be a valid identifier. That is, it should start with a letter and contain only alphanumeric characters. |