Owning Palette: Web Services VIs
Requires: Full Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the Output VIs to set HTTP settings, configure ESP scripting, and write streaming responses.
|Flush Output||Sends any remaining data written by the Write Response VI from the buffer to the socket. Use this VI when the top-level VI is configured to use streaming and buffering on the HTTP Method VI Settings page of the Web Service Properties dialog box. The status of error in does not affect the functionality of this VI.|
|Render ESP Template||Executes the specified ESP scripting template. Refer to the Scripting in LabVIEW Web Services topic at ni.com/zone for more information about using scripting with Web services.|
|Set ESP Variable||Sets variables to be visible in an ESP scripting template. You can access these variables from the form variables in the ESP template. Refer to the Scripting in LabVIEW Web Services topic at ni.com/zone for more information about using scripting with Web services. The data type you wire to the value input determines the polymorphic instance to use.|
|Set HTTP Header||Sets an HTTP header in the response stream of the current HTTP request. The top-level VI must be configured to use streaming. Refer to the World Wide Web Consortium website at www.w3.org for header field definitions along with example headers, descriptions, and syntax.|
|Set HTTP Redirect||Sets an HTTP header in the response stream of the current HTTP request that redirects the Web client to another URL. You must configure the HTTP method VI to use streaming.|
|Set HTTP Response Code||Sets the HTTP status code to return to the Web client for the current HTTP request. The response code indicates the outcome or status of the request. The default is HTTP code 200, which indicates a successful request.|
|Set HTTP Response MIME Type||Sets the MIME response type for the current HTTP request. The MIME is a standard method used to indicate the format of the response including text, images, or other application-specific data.|
|Write Response||Writes a streaming response string for top-level VIs configured to use stream output mode on the HTTP Method VI Settings page of the Web Service Properties dialog box. You can write the response to a buffer in memory or to the socket, and the response can be either buffered or unbuffered. If the response is buffered, use the Flush Output VI after this VI to send any remaining data that remains in the buffer. The status of error in does not affect the functionality of this VI.|