Hi,
I've been using an early release version of the RTI Web Integration Service with 5.2.3 and it is working very well. The documentation says that the service can produce xml or json. So far I can only get xml output. Does anyone know how to get json formatted data?
Thanks,
Anne Fiore
Hi Anne,
The Web integration Service API offers different query parameters can that help you tune the read/take operation (i.e., an HTTP GET request on a specific DataReaders). To read samples in JSON format, you can add the
sampleFormat
query parameter to the URL and set it tojson
. For example, the read operation onMySquareRdr
that the Shapes Demo tutorial illustrates can be translated into JSON using the following HTTP request:Or the equivalent
curl
command:For a simple example on how to read in JSON format using JavaScript, please take a look at this simple Shapes Demo application on Github. For more information on the query parameters that you can use in the read operation, please take a look at the API Reference (click on the GET operation on a specific DataReader, i.e., in the last row in the
/applications
table).Please, let me know if you have more questions regarding Web Integration Service. We are also interested in your feedback, if you think that there are things that are not clear or there is any important feature that we may have left out, please let us know.
Thanks,
Fernando.