I want to programmatically start and stop a REST web service in LabVIEW 2013.
I found information about how to programmatically build and deploy the web service. However, this does not fit with the way I built my REST web service because I am using a newer version of LabVIEW: the REST service is not a Build Specification.
I also found this tutorial about how to programmatically start and stop the LabVIEW Web Server. I tried this method and it does not work for me. The reason may be because this tutorial is for an older version of LabVIEW.
I specifically want to start and stop an individual REST web service. Right now this web service is associated with a GUI; when the GUI is running, the service is online and when the GUI closes the service goes offline automatically.
I want more control than this: I want to specify when to start and when to stop the service (for instance, when a user clicks a button). I also noticed that the LabVIEW Application Server is always online (even when LabVIEW is closed) because I get a 404 response rather than a "could not resolve" browser error.
Is there a way to control when my REST Web Service is running? Is there a way to control the LabVIEW Application Server?
Thanks!
Darshan