Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66749

Passing an Array to VI Exposed in REST Web Service

$
0
0

It appears that the REST Web Service does not support passing an array via the query parameters of an HTTP request.


For instance, I would like to do the following:

 

1. Send GET http://127.0.0.1:8002/driver_interface/summation?Array=1&Array=2&Array=3

2. LabVIEW recieves its "Array" input as [1, 2, 3]

 

I noticed that when I wire the "Array" to the connector pane, it is not exposed as a query parameter.  I could write my own utility which uses the "Read Request Variable" VI; on the server-side VI I would read the "Array" request variable and turn the "1 2 3" string into an array of numbers.

 

Am I correct that the REST web service does not have this array query parameter support natively?  (I also noticed the same thing with cluster inputs: they are not exposed via the query parameters.)


Thanks!
Darshan


Viewing all articles
Browse latest Browse all 66749

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>