Parent Topic: Building a LabVIEW Application to Deploy Remotely
Web method VIs send and receive data using the connector pane terminals. When a Web method VI receives an HTTP request from a Web client, the VI can accept values for specific controls on the connector pane, process those values, and return a result via an indicator on the connector pane. Web method VIs only can send and receive data that uses LabVIEW data types supported in Web services.
![]() |
Note This topic assumes familiarity with the Web services introduction and Building a LabVIEW Web Service Application tutorial. LabVIEW Web services are available only in the LabVIEW Full Development System and the LabVIEW Professional Development System. |
To receive data in a Web method VI, you must assign controls to terminals on the connector pane of the Web method VI. Web clients can then send values to a Web method VI using the label of the control as the identifier. To return data from a Web method VI to a Web client, you must assign indicators to terminals on the connector pane of the Web method VI. If you include VIs from the Web Services palette, you also must assign the httpRequestID to the connector pane of the Web method VI.
![]() |
Note Labels used to send and receive values in Web services can contain only letters, numbers, hyphens, and underscores available in the US ASCII character set. Labels cannot contain spaces or special characters. |
The following figure displays an example front panel, block diagram, and connector pane of a Web method VI that accepts two values from a Web client and returns the sum of those values to the client.
| Block Diagram | Front Panel | Connector Pane |
|---|---|---|
|
|
|
|