Hosting websites > Hosting databases for XML queries
 

Hosting databases for XML queries

FileMaker Custom Web Publishing with XML enables you to send query requests to FileMaker Server and display, modify, or manipulate the resulting data as needed. Using an HTTP request along with the appropriate query commands and parameters, you can retrieve FileMaker data as an XML document.

To host a database that uses Custom Web Publishing with XML:

1. In FileMaker Pro Advanced, open the database and edit the privilege set for the account that will access the database. Enable the extended privilege Access via XML Web Publishing - FMS only.

Note  If your FileMaker database solution uses more than one FileMaker database file, all of the database files accessed using XML must have the extended privilege Access via XML Web Publishing - FMS only enabled.

2. Using the CLI, enable Custom Web Publishing with XML using the following command:

fmsadmin set cwpconfig enablexml=true

See Using the command line interface.

3. In Admin Console, make sure the Web Publishing Engine is enabled on the master machine. See Web publishing settings.

4. Prepare databases for Custom Web Publishing. See FileMaker Server Custom Web Publishing Guide.

5. Upload the database file to FileMaker Server. See Uploading database files using FileMaker Pro Advanced.

Note  If your FileMaker database solution uses more than one FileMaker database file, all of the database files accessed using XML must be on the same computer.

6. Send an HTTP or HTTPS request in the form of a URL that specifies the FileMaker XML grammar, one query command, and one or more FileMaker query parameters to the Web Publishing Engine through an HTML form, an HREF link, or a script in your program or webpage. You can also type the URL in a web browser.

For information on specifying a URL for XML data, see FileMaker Server Custom Web Publishing Guide.