Web clients use URLs and HTTP methods to exchange data with controls on the connector pane of HTTP method VIs. For example, if you create an HTTP method VI that contains two numeric controls assigned to the connector pane, a web client can send values to those controls using a URL or HTTP method. The HTTP method VI can then return a response such as the sum of the numeric controls.
|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.|
HTML forms, web browsers, the HTTP Client VIs, and HTTP-capable third-party applications can exchange data with HTTP method VIs using HTTP methods.
By default, an HTTP method VI returns data to web clients as an XML string. The XML string includes a summary of the indicator values assigned to the connector pane of the HTTP method VI. You also can configure an HTTP method VI to return data as an HTML-, plain text-, or JSON-formatted response. Configure the output format type on the HTTP Method VI Settings page of the Web Service Properties dialog box.
Web services support four standard HTTP methods used in web communication:
Refer to the World Wide Web Consortium at www.w3.org for more information about HTTP method definitions, including the POST, GET, PUT, and DELETE methods.