Sending Data to a Published Application using URLs (Real-Time, Windows)

LabVIEW 2018 Help

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

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Parent Topic: Sending HTTP Requests to Web Services

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.

Clients use URLs and HTTP methods to transmit data directly to controls on the connector pane of HTTP method VIs, as well as to send values as POST data using the POST HTTP method. The URL that web clients use to exchange data with HTTP method VIs is built upon various values determined when you create a LabVIEW Web service. The following figure shows an example URL that a web client might use to exchange data with an HTTP method VI.

  • IP address or computer name—If the web client accesses the Web service from the same system that runs the host web server, use the value localhost. If the web client accesses a Web service on a remote target, use the target's IP address or system name.
  • Port—Matches the port of the host web server.
  • Web service name—Matches the Service name option on the Service Settings page of the Web Service Properties dialog box.
  • URL mapping—Matches the URL mapping from the HTTP Method VI Settings page of the Web Service Properties dialog box.

    For each HTTP method VI, LabVIEW defines a default mapping that includes the web resource to which the VI belongs, if applicable, followed by the VI name.
  • Query string for input terminals—Matches labels of controls assigned to the connector pane of the HTTP method VI. Append this query string to a URL mapping using the syntax in the previous illustration. For example, the query string ?x=5&y=8 passes data to controls labeled x and y on the connector pane of an HTTP method VI whose URL mapping is add. Note that you separate label-value pairs with an ampersand (&).

Related Information

Understanding URL Mappings and Query Strings in Web Services

Sending HTTP Requests to Web Services

Hosting Web Services

Data Communication Methods Home


Not Helpful