Written by

Question Safeena M · May 30, 2017

Web Method Invocation by Cache Class

Hi,

I want to know how exactly,do we invoke the SOAP Web Methods(Methods in the SOAP Web-service which has been created in the Studio) by Cache Class.

THANKS, Safeena.M

Comments

Daniel Kutac · May 30, 2017

Safeena,

you do not invoke web methods directly. You need to create a client class by consuming a WSDL file that your service exposes. There is a wizard that guides you through the process of client creation. Apart to client class itself the wizard also generates all data types used by a web service. Please consult documentation here.

There are some other option when using Ensemble but I suggest you follow the link above.

0
Sean Connelly · May 30, 2017

As Daniel has said.

Plus, you might want to unit test them, in which case you need to create an instance of your web service class and call its instance method, e.g.

set service=##class(MyApp.MyService).%New()
set result=service.Test()

where MyApp.MyService is the name of your web service class, and Test() is the instance method you want to call.

0