01-08-2024 01:01 AM - edited 01-08-2024 01:11 AM
I am using this article to submit Web Server JSON Web Service response as 2D array.
However, the LabVIEW Web Service client gets an empty curly bracket {} result.
The article is here:
How to Send a Response as JSON Format From LabVIEW Web Service - NI
PNG of my Web Server VI and Web Service Client are attached. There is also a screen shot of Header and Body response.
Is there anything that I am doing wrong?
Solved! Go to Solution.
01-08-2024 02:06 AM
The obvious question would be if the SQL query actually returns any data or just an empty array?
01-08-2024 02:37 AM
If I use a STRING indicator for result, and place it on the connector pane, I do get all the data but the format is messed up with ESCAPE characters and such.
Anthony
01-08-2024 01:21 PM
01-08-2024 11:46 PM
OK, that error is now resolved!
The reason why it was happening was because, if you send anything via the WRITE RESPONSE Web Service VI as an output, you MUST set the METHOD VI Property to STREAM.
See setting in attached PNG.