Communicating Data with Web Services Using WebVIs
- Updated2024-05-31
- 2 minute(s) read
Communicating Data with Web Services Using WebVIs
You can communicate with web services on the same network using WebVIs.
Use the following table to choose the best communication option for your needs.
| Goal | Web service to use | How to implement |
|---|---|---|
| Track a piece of data, such as a hardware measurement. | Tags Service | Refer to Transferring Data Using Tags |
| Send commands, status updates, and data between web applications and servers. | Messages Service | Refer to Sending Messages Between Systems |
| Share waveform data stored in a TDMS file. | TDM Reader API Service | Refer to Reading Measurement Data from TDMS Files |
| Host a WebVI to make it accessible from web browsers. | NI Web Server | Refer to Hosting a WebVI with the Web Applications Service |
| Create a custom HTTP REST API to interface with an existing system, such as a database. | LabVIEW Web Service | Refer to Creating and Publishing a LabVIEW Web Service to
the NI Web Server (Windows) Note Download the latest LabVIEW Help for
the most up-to-date content.
|
| Refer to Configuring CORS for a LabVIEW Web Service | ||
| Refer to Hosting a Web Application on the NI Application Web Server | ||
| Stream data with low latency. | 3rd party WebSocket service | Refer to WebSocket G APIs |
Related Information
- Retrieving Data From a Web Service
- Transferring Data Using Tags
- Sending Messages Between Systems
- Reading Measurement Data from TDMS Files
- Tutorial: Creating and Publishing a LabVIEW Web Service to the NI Web Server (Windows)
- Tutorial: Creating and Publishing a LabVIEW Web Service to the Application Web Server (Real-Time, Windows)
- Considerations When Accessing Data from Web Services
If you want to create a web application that sends requests to and receives responses from a web service, you need to know the origin of the web service that hosts the web application as well as the origin of the target web service.
- Hosting a Web Application on a Server
To make your web application available to other users, host your build output on a web server that is accessible to other users.
- Hosting a WebVI with the Web Applications Service
Host a WebVI on the NI Web Server with the Web Applications Service to securely share it with users on the server.
- Configuring CORS for a LabVIEW Web Service
You may need different CORS configurations for each LabVIEW Web Service in your application during development and deployment.
- Hosting a Web Application on the NI Application Web Server
To make your web application available to other users, host your build output on a web server that is accessible to other users.
- WebSocket G APIs