Parent Topic: Developing Web Services
When you build a Web service, you can integrate static content such as HTML files, JavaScript files, CSS files, images, and videos from within the LabVIEW project. For example, you can publish stand-alone web pages using Web services or provide a user interface that interacts with the HTTP method VIs in a Web service.
![]()  | 
Note If you want to integrate LabVIEW NXG WebVIs with a LabVIEW Web service, include the built WebVI files in the Public Content folder in your LabVIEW Web service project. Refer to Using WebVIs to Create User Interfaces for Web Services for more information. | 
Complete the following steps to integrate static content into a Web service:
 in the project tree and select Add Public Content Folder or Add Private Content Folder.
After you publish the Web service, you can access the static files from a client, such as a web browser, by navigating to the URL mapping for the file you want to access.
LabVIEW automatically assigns a URL mapping to each public static file. You cannot change this mapping. Complete one of the following steps to view the URL mapping for a public static file:
You can include an index.html file within each public content folder and subfolder in the project. When a client sends an HTTP request using a URL such as http://localhost/TutorialService/, the Web service returns the index.html file.
Complete the following steps to integrate a default index.html file for a specific public content folder:
![]()  | 
Note The file extension must be .html. | 
Private static files do not have URL mappings because web clients cannot access private content. To programmatically access private static content within Web service source files, use the Read Service Attribute VI to return the path to the folder that contains private content at run time. With the path to the private content folder, you can build a path to a specific file. Refer to the Read Service Attribute VI help for more information.