Here are the steps for creating a Caché Web Service using MVBasic:
Open Studio. Click
and connect to the USER
namespace. See the note below for instructions.
On the first page of the wizard, leave the default values and click
The wizard generates a new class named MyApp.MyService
. The class contains a single method named Test
. The class looks like this.
By default the language for the class is ObjectScript. Change the language to MVBasic by changing the value of the language
class parameter to mvbasic
. Do this by modifying the class declaration to look like this.
Class MyApp.MyService Extends %SOAP.WebService
[ language=mvbasic, ProcedureBlock ]
Next, change the Test
method so it uses MVBasic. Replace Quit
Method Test() As %String [ WebMethod ]
Compile the class by clicking
from the menu bar.
© 1997-2019 InterSystems Corporation, Cambridge, MA