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.
Note For Linux, Custom Web Publishing with PHP and XML is not supported.
To host a database that uses Custom Web Publishing with XML:
-
In FileMaker Pro, 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 Pro database solution uses more than one FileMaker Pro database file, all of the database files accessed using XML must have the extended privilege Access via XML Web Publishing - FMS only enabled.
-
Using the CLI, enable Custom Web Publishing with XML using the following command:
fmsadmin set cwpconfig enablexml=true
-
In Admin Console, make sure the Web Publishing Engine is enabled on the primary machine. See Web publishing settings.
-
Prepare databases for Custom Web Publishing. See FileMaker Server Custom Web Publishing Guide.
-
Upload the database file to FileMaker Server. See Uploading database files using FileMaker Pro.
Note If your FileMaker Pro database solution uses more than one FileMaker Pro database file, all of the database files accessed using XML must be on the same computer.
-
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 web page. 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.