Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Read Service Attribute VI

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Service VIs

Requires: Full Development System

Returns information about the current Web service. Use this VI to programmatically access the contents of the public and private folders of the Web service.

Note  For more information about concepts in this topic, refer to the Web services introduction and tutorial.

Details  

LabVIEW Web Service is an identifier used by Service VIs to access information about the current Web service. LabVIEW Web Service works similarly to a refnum in LabVIEW, allowing you to wire together Service VIs within your application. You can also wire LabVIEW Web Service Request to this input, as LabVIEW Web Service Request inherits from LabVIEW Web Service.

When you use Service VI(s) within a startup VI, you must assign the control wired to the original LabVIEW Web Service input to the connector pane for the Service VI(s) to function.
attribute name identifies the web service information you want to read. This parameter provides a pull-down menu of available attribute names, including:
  • Private Content Path—Returns the path to the private content folder of the Web service.
  • Public Content Path—Returns the path to the public content folder of the Web service.
  • Web Service Version—Returns the version number of the Web service.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
LabVIEW Web Service out is used by Service VIs to reference the current Web service. Use LabVIEW Web Service out to wire together Service VIs within your application.
value returns the web service attribute specified by attribute name as a string.
error out contains error information. This output provides standard error out functionality.

Read Service Attribute Details

The code shown below uses Read Service Attribute to generate the path to a specific file in the Public Content folder of a Web service.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit