Modifying AppRoot.SRC

The final step on the VTScada side of supplying web services is to add a line to the Services section of the application's AppRoot.SRC file to tell it where to find the module created in the last step. This step is required only if you want the web service to be instantiated at start up.

For this example, it will be declared as:

[ (SERVICES) {=== Modules that are services that are started ===}
  TagQueryServices Module "TagQueryServices.SRC";
]

Again, note the name "TagQueryServices" that was defined in the WSDL file and then used again within the module TagQueryServices.SRC.

After adding this line, the application will need to be re-compiled. Stop it if it is running and run the Compile command from the VAM. You will be prompted to import the new files:

When the application starts again it will be providing a web service of returning requested tag values from our application.