Hosting Web Services (Real-Time, Windows)

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2015 Help
LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help

Parent Topic: Overview: Web-based Communication with a LabVIEW Application

LabVIEW uses one of two types of web servers to host Web services on the network:

  • Unique web server—If the Web service is part of a LabVIEW stand-alone application, it runs on a web server specific to the application.
  • Application Web Server—If the Web service is not part of a stand-alone application, it runs on the Application Web Server. For example, Web services you publish directly from a LabVIEW project do not depend on a stand-alone application, so they run on the Application Web Server on the target.
Note  For more information about concepts in this topic, refer to the Web services introduction and tutorial. LabVIEW Web services are available only in the LabVIEW Full Development System and the LabVIEW Professional Development System.

Web Server for Web Services in a Stand-Alone Application

When you include a Web service in the build specification for a LabVIEW stand-alone application, the application acts as a web server that hosts the Web service directly. LabVIEW unpublishes the Web service when the built application exits.

The LabVIEW built application starts its own web server that hosts the included Web services. Because each VI in the Web service is running in the same context as the application’s startup VI, you can use simple function global variables (FGV) to pass data between them. The following illustration shows an example of how a LabVIEW built application starts its own web server.

You can configure SSL and the port you want to use to accept requests for the Web service when you specify to include the Web service in the application build specification.

Related Information

Configuring Web Services Security

Including a Web Service in a Stand-Alone Application or Installer

Application Web Server for Stand-Alone Web Services

The Application Web Server that runs on a target hosts stand-alone Web services. Before you publish a stand-alone Web service from a LabVIEW project, you might need to enable and configure the Application Web Server.

Complete the following steps to check the status of Web services deployed to the Application Web Server:

  1. Right-click the Web service project item in the project tree and select Application Web Server»Manage Web Server. The NI Web-based Configuration & Monitoring utility opens in a web browser.
  2. Click the Web Services Management button on the left-hand sidebar.
  3. Any published Web services appear in the Deployed Web Services list. You might need to click the Refresh button to update the list.

The Application Web Server runs as an independent system service. You can enable and run the Application Web Server without running LabVIEW or the LabVIEW Run-Time Engine on the host system. Once you enable the Application Web Server, it launches whenever you boot up the system as ApplicationWebServer.exe.

Related Information

Enabling the Application Web Server for Web Services

Configuring Web Services Security

Debugging Server

When you start debugging a Web service, LabVIEW places the Web service on a debugging server, where it behaves as if published on a target.

The default port that web clients use to send requests to the Web service in debugging mode is 8001. To use a different port for debugging, select Tools»Options, browse to the Web Server page, and modify the Debug HTTP Port option.

Related Information

Testing and Debugging a Web Service

Other LabVIEW Web Servers

LabVIEW also includes a System Web Server for internal Web service processes. The System Web Server also runs as an independent system service. After you install LabVIEW, the System Web Server launches whenever you boot up the system as SystemWebServer.exe. You cannot disable the System Web Server.

LabVIEW includes a separate web server that hosts remote front panels.

WAS THIS ARTICLE HELPFUL?

Not Helpful