![]() | LabVIEW 2015 Help |
![]() | LabVIEW 2016 Help |
![]() | LabVIEW 2017 Help |
![]() | LabVIEW 2018 Help |
![]() | LabVIEW 2019 Help |
A web client can exchange data with a remote LabVIEW stand-alone application over a network through LabVIEW Web services. A Web service consists of VIs and other files running on a server that respond to HTTP requests from clients.
![]() |
Note LabVIEW Web services are available only in the LabVIEW Full Development System and the LabVIEW Professional Development System. |
Web services are useful in the following situations:
Do not use Web services in the following situations:
The following figure shows common components and processes involved in many LabVIEW Web service applications.
Tutorial: Creating and Accessing a LabVIEW Web Service
Testing and Debugging a Web Service
Including a Web Service in a Stand-Alone Application or Installer
From the project, you can perform the following actions to distribute or run the Web service:
Web services run on a web server. If the Web service is part of a LabVIEW stand-alone application, it runs on a web server specific to the application. If the Web service is stand-alone, it runs on the Application Web Server. A Web service starts and stops running under different conditions, depending on how you publish it to the host server.
A web client, such as a browser, exchanges data with a Web service by sending an HTTP request to a specific URL. LabVIEW maps a URL to each HTTP method VI, so the specific URL that the client uses determines which HTTP method VI receives the HTTP request. The request might contain values to assign to specific parameters in the HTTP method VI. After each request, the HTTP method VI can process those values and return a response. The Web service returns data to the web client in a particular format that you configure, such as XML.
![]() |
Note Each time a client reconnects to an HTTP method VI, such as when it refreshes the browser, the client sends a new HTTP request. |
In a simple example, a web client might submit an HTTP request that contains two numbers to an HTTP method VI that calculates and returns the sum.
Developing HTTP Method VIs: Choosing the Format of Output Data
Processing POST Data, Form Data, and Uploaded Files
Configuring HTTP Headers, Streaming, and Buffering
Supported web clients include any HTTP-enabled platform, such as standard web browsers, HTML forms, third-party software, and VIs that utilize the HTTP Client palette.
Sending Data to a Published Application using URLs
Understanding URL Mapping in Web Services
When included in a stand-alone application, Web services run in the main application instance. You can implement communication between the application and Web service with many features and protocols for which LabVIEW provides APIs.
Web services can communicate with LabVIEW stand-alone applications running on a target. An example of an embedded application is a start-up application deployed to an RT target.
Including a Web Service in a Stand-Alone Application or Installer
Helpful
Not Helpful