Recommended way to call an external API? (Web client compatible)

Hi everyone!

I need to interact with a external API, what is the recommended way? For example, when the user presses a certain button, the value of a certain tag should be sent to the external API.

It should be compatible with using the InTouch application via Web Client.

Many thanks for your time!

Parents Reply
  • Hi Richard!

    I've managed to make the WEBSVC driver work when used under the WindowViewer runtime, but the same application doesn't work when used with Web Client...

    The WEBSVC driver is using a REST configuration.

    At this stage the "application" is just a datagrid widget and a button. The button has an "Action script" on left animation, that does just this:

    LogMessage("Refresh");
    WSRun = 1;
    grid.Datasource = WSResult;

    WSRun is a tag that references the "ww.get.run" item of my WEBSVC, while WSResult references "ww.get.result"

    As I said, when run under WindowViewer the grid gets correctly populated, while under Web Client I get only the "Refresh" log message, my external API doesn't get called at all... Am I going the wrong way?

Children