Troubleshooting
Problem
The DataPower Gateway returns an error: "Forbidden external reference encountered while parsing XML. External DTD/entity references are no longer allowed by default." This can happen while configuring a DataPower service or during XML schema validation.
Cause
The WSDL or schema file in use contains external DTD/entity references. Such references are disallowed by the device by default for security reasons.
Resolving The Problem
The XML Manager in use by the service (such as a Web Service Proxy or Multi-Protocol Gateway) includes a property that controls the use of external references. To allow the use of such references, it is necessary to change the setting of this property.
The property, called XML External Reference Handling, is set to Forbid by default. As a workaround, change the property to Allow and apply the changes. The property options are as follows:
- XML External Reference Handling
- Forbid
- Ignore
- Allow
Select the special handling for input documents that contain external references, such as an external entity or external DTD definition.
Forbids external references. The parser stops when the document contains external references.
Accesses and resolves external references, but replaces each for further processing with an empty string.
The parser resolves all external references.
Was this topic helpful?
Document Information
Modified date:
08 June 2021
UID
swg21253017