08-19-2012 09:23 PM - last edited on 01-14-2025 04:22 PM by Content Cleaner
Here is an example of Post.vi in LabVIEW:
https://www.ni.com/docs/en-US/bundle/labview/page/using-the-post-http-method-real-time-windows.html
How can I use the "http post string" in LabVIEW Web UI Builder to do the same thing?
08-20-2012 02:39 PM - last edited on 01-14-2025 04:29 PM by Content Cleaner
Hi Lawrence,
The HTTP Post String function can be use in a very similar manner to the Post VI in LabVIEW. A similar example is shown below:
Sincerely,
08-20-2012 09:24 PM
I have tried the example but does not work , I can receive the response body but I can't set x = 3 & y = 2 , the sum I get is zero.
08-21-2012 09:48 AM - last edited on 01-14-2025 04:29 PM by Content Cleaner
Hi Lawrence,
Please post your LabVIEW web service code (in VI snippet if possible).
08-21-2012 11:26 AM - last edited on 01-14-2025 04:30 PM by Content Cleaner
Hi Lawrence,
There may be a problem with your web service. I would recommend that you review the Getting Started Tutorials on using web services and Web UI Builder. The links are provided below:
Tutorial: Building and Accessing a LabVIEW Web Service Application (ETS, VxWorks, Windows) - this demonstrated how to use build the add web service
Getting Started with the LabVIEW Web UI Builder, Part 1: Creating and Running a VI
08-21-2012 11:41 AM
It's probably worth mentioning that if you want to call LabVIEW web services that have a small number of inputs (and if the inputs are strings, the length is reasonably short), the easiest way to do this is is with the Import Web Service feature in UI Builder. (And the LabVIEW web methods would be configured as Terminal Mode / XML format in this case).