LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HTML button click to call a web service vi

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

0 Kudos
Message 1 of 2
(2,871 Views)

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

              

Think Dataflow - blog.mtapp.tech
0 Kudos
Message 2 of 2
(2,846 Views)