Retrieving content using Query

You can retrieve the content of a document using an XPATH Query.

Any XPATH expression can be used.

If the errorOnMultiple=true flag is set, and the query finds more than one result, an error is returned.

If the errorOnMultiple=false flag is set or the errorOnMultiple flag is not set in the URL and multiple results are found, the first one in the list is returned.
Note: While it is likely that the same document is returned, it is not guaranteed. When using this technique ensure that only one result is returned from the query.

Example

To retrieve the content of a WSDL document with an error message if more than one result is returned, use a URL of the following form:
http[s]://hostname:port/WSRR/8.5/Content?query=/WSRR/WSDLDocument[@name='test.wsdl']&errorOnMultiple=true