08-18-2016 03:58 AM
Hello,
This may seem very basic but can you make the click of a button on a html page, execute a web service vi?
How can this be done?
Thanks
08-18-2016 06:41 AM - edited 08-18-2016 06:41 AM
Hello!
Have you followed this instructions to run web service vi? https://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/build_web_service/
If so you can find there a section Testing and Debugging the Web Service. The point 5 says:
Paste the URL from step 5 into a standard web browser and replace the {value} variables with numeric values, such as: http://127.0.0.1:8001/TutorialService/Add?b=2&a=3.
I don't have the example right now, but I suppose if you run the service and put this address http://127.0.0.1:8001/TutorialService/Add?b=2&a=3 in a HTML button it should work 🙂
Let me know, if this has helped!
Marcin