Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

Caché Suppport for Web Services

Caché provides full support for Web Services. Moreover, support for Web Services is built into Caché and does not require any additional middleware. Using Caché you can quickly and easily build Web Services that are accessible to clients on any platform. You can also quickly and easily build clients that can access Web Services on any platform. Caché Web Services and clients can be coded using MVBasic.

The following tables summarize Caché support for Web Services and Web Service clients:

Caché Web Service Support
Component Description
Caché classes containing Web Services must extend this class. Caché automatically exposes as a Web Service any method tagged with the “WebMethod” keyword in such a class.
By extending this class, a Caché class becomes XML-enabled. In order for an object to be returned from a Caché Web Service, it must be an instance of a class that extends this class.
class compiler
Automatically generates the SOAP interface and WSDL document when it compiles a class extending %SOAP.WebService.
Caché SOAP Server
Forwards Web Service requests from the CSP gateway to the correct Web Service. Translates messages from SOAP to their Caché representation.
Web Service Test Page The system automatically generates a Web page that can be used to test the Web Services contained in a class.
Caché Web Service Client Support
Component Description
Local proxy classes for Web Services must extend this class. Note that you do not generally code these proxy classes by hand. Caché provides a utility for automatically generating them. See the next entry.
Apply the Process method of this class to the WSDL for a Web Service to generate local proxy classes for the Service.