Publishing a Web Service through a Package (Windows)

Parent Topic: Publishing Web Services

You can publish a Web service to the NI Web Server through an NI package (.nipkg). The Web service starts/stops running after you install/remove the package.

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.

Complete the following steps to publish a Web service through an NI package:

  1. Include the Web service in a package:
    1. Right-click Build Specifications in the�Project Explorer�window and select�New»Package to launch the�Package Properties�dialog box.
    2. On the�Web Services�page, place a checkmark in the checkbox for the Web service you want to include.
    3. (Optional) On the Package Installer page, place a checkmark in the Create a Package Installer checkbox to build your distribution into a package installer file (.exe).
    4. (Optional) On the Feed page, choose whether to add your package to a local feed or publish the package to a feed on a SystemLink server.
  2. Build the package that contains the Web service:
    1. Click Build and the Build Status dialog box appears.
    2. When LabVIEW completes building the package, click Explore to open the destination directory where LabVIEW saves the package file(s).
  3. Install the package on the target computer so that the Web service starts running on the target computer:
    1. Double-click the package (.nipkg) in the destination directory and install the package through NI Package Manager. When the installation is complete, the Web service is published to the NI Web Server on the local computer.
      Note  Publishing Web services to the NI Web Server requires administrator privilege.
    2. Close the�LabVIEW project. Published Web services run on the LabVIEW Runtime and do not depend on the LabVIEW Development System.

When Do I Create a Package Installer?

A package installer includes all package dependencies so that the target can install the package without network access or any NI software. If you want to publish the Web service to a computer that does not have an internet connection or any necessary software for installing the package and running the Web service, such as NI Package Manager and the LabVIEW Runtime, you need to create a package installer.

When Do I Add the Web Service to a Feed?

On the deployment target, you can subscribe to a feed to find and install the package and receive update notifications from NI Package Manager or NI SystemLink via network access. NI recommends using feeds when distributing multiple packages that have dependencies on one another.

Related Information

Installing Packages from a Feed

Deploying Applications to Clients on a Server