Owning Palette: Web Services VIs
Requires: Full Development System (Windows). 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 and write streaming responses.
Palette Object | Description |
---|---|
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. |
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. |