06-28-2016 03:00 AM
Hi guys,
I'm fairly new to Web Service and HTTP.
Can anyone tell me what's a good method to transfer data from my Main VI to the HTTP Method VI? In a project I'm working on, I enqueued 12 bytes of data into a Queue, which is later dequeued at the HTTP Method, which is then transferred over web service.
Is it advisable to use Queue?
06-29-2016 09:18 AM
Not sure if there is exactly a right answer to this. What goes for standard LV goes for LV using web services. You can use named queues, global variables, functional global variables, etc etc. Queues are a great way to pass data - you know that the main VI is no longer active when the queue throws an error and you can have your app respond with the appropriate http response code. In a large application that I am building, I have the main app return data via a DVR that is wrapped in an FGV Works for me.
But, as with all software engineering, there is not exactly one right answer...
Cheers, cirrus