Manage Global Resources

The Manage Global Resources task is used to manage resources that apply globally, such as XML schema or DTD (Document Type Definition) resources. A global resource can be referenced by an import statement in one or more Validate XML Schema assertions in a policy, or from another global resource. During runtime, the  resolves a schema referenced by an import, include or redefine statement as part of the validation process. The referenced schema, or global schema, must exist in the Manage Global Resources table—and hence in the —in order for validation to proceed.
gateway91
The Manage Global Resources task is used to manage resources that apply globally, such as XML schema or DTD (Document Type Definition) resources. A global resource can be referenced by an import statement in one or more Validate XML Schema assertions in a policy, or from another global resource. During runtime, the
Layer7 API Gateway
 resolves a schema referenced by an import, include or redefine statement as part of the validation process. The referenced schema, or global schema, must exist in the Manage Global Resources table—and hence in the
Layer7 API Gateway
—in order for validation to proceed.
Schema dependencies (i.e., import targets) do not need to be in the Manage Global Resources table when monitoring a URL for a schema to validate (“Monitor URL for latest value” option in the Validate XML Schema assertion).
In order for the
Layer7 API Gateway
 to be able to resolve external schemas when running the Validate XML Schema assertion, the import statement in the assertion schema must contain a "schemaLocation" attribute value that matches the global schema's "System ID" value.
Default Global Resources
The following global resources are present by default:
  • SOAP 1.1 and 1.2 XML Schemas
    :
http://schemas.xmlsoap.org/soap/envelope/
(SOAP 1.1)
http://www.w3.org/2003/05/soap-envelope/
(SOAP 1.2)
http://www.w3.org/2001/xml.xsd
(XML namespace)
  • DTDs
    :
h
ttp://www.w3.org/2001/XMLSchema.dtd
(XML Schema)
http://www.w3.org/2001/datatypes.dtd
(XML Schema Datatypes)
You can edit and delete these resources as with other resources.
By default, an XML schema may not reference a DTD. If you wish to override this behavior, set the schema.
allowDoctype
cluster property to "true".
To manage global resources
:
  1. In the Policy Manager, select 
    [Tasks] > Global Settings > Manage Global Resources
    from the Main Menu (on the browser client, from the
    Manage
    menu).
    The Manage Global Resources dialog appears.
  2. Optionally filter the list of resources displayed:
    1. In the Matches field, enter the filter string. You can use a regular expression for more precise matching.
    2. Select the Type of resources to be matched:
      XML Schema
      ,
      DTD
      , or
      Any
      .
    3. Click [
      Filter
      ]. The list is filtered to display only the matching resources. The status message at the bottom of the dialog summarizes any filtering in effect.
      To return the list to an unfiltered state, clear the Matches field, select type
      Any
      , then click [
      Filter
      ].
  3. Choose an action to perform:
To...
See
Import a global resource
Add a XML schema
Add a DTD
Edit a global resource
Remove a global resource
Analyze a global resource
    4.  Click [
Close
] when done.