Web Services Example: Modifying AppMod.src

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

 

For our example, this will look like so:

 

  [ (SERVICES) {=== Modules that are services that are started ===}

     TagQueryServices Module "TagQueryServices.SRC";

  ]

 

Again, note the name "TagQueryServices" that we first 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.  

 

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

 

Next step:  Creating a program to request values from our service