Overview
What is its Purpose?
- Ensures integration compatibility by transforming XML messages on API Proxy to the form expected by target systems.
- Provides opportunity to apply business rules at message layer with XSLT-based XML2XML transformations.
- Serves XML-based services to JSON-consuming clients without intermediary with XML2JSON mode.
- Makes transformation errors traceable by catching them with standardized error messages and status codes.
Working Principle
- Request Arrival: For each HTTP/HTTPS request arriving at the API Gateway, the source IP address of the request is identified.
- Policy Check: If the XML Transformation policy is active, the system checks in the following order:
- Is a Condition defined? If so, is the condition met?
- Is the policy active (active=true)?
- Is a Variable used or is Apinizer default used?
- XML Transformation Rules: If conditions are met, XSLT content or XML→JSON flags are loaded for selected
transformationType, necessary validations are performed. - Decision Making:
- Match Found: XML content is transformed according to selected mode, result body and header values are updated according to new format.
- No Match: Original message is forwarded unchanged through Gateway.
- Error Handling: Customizable HTTP status code and error message are returned for requests that do not comply with the policy rule.
Features and Capabilities
Basic Features
- Dual Transformation Mode: Manages different integration needs under the same policy with XML2XML (XSLT) and XML2JSON options.
- XSLT Editor and Preview: Provides validation opportunity before saving XSLT rules with advanced code editor and test tool.
- JSON Output Optimization: Flexibly manages null, empty and number fields according to target format in XML→JSON transformations.
- Active/Passive Status Control: Easily change the active or passive status of the policy (active/passive toggle). In passive state, the policy is not applied but its configuration is preserved.
- Condition-Based Application: Determine when the policy will be applied by creating complex conditions with Query Builder (e.g., only for specific endpoints or header values).
Advanced Features
- Transformation Test Laboratory: Real-time XSLT trials can be performed on XML inputs with Test Transformation Data component.
- Conflict Prevention Mechanism: Proactively prevents conflicts between global and local policies with name uniqueness check.
- XML→JSON Array Mapping: Transforms certain XPath expressions to JSON arrays with Array Path List parameter.
- Export/Import Feature: Export policy configuration as a ZIP file. Import to different environments (Development, Test, Production). Version control and backup capability.
- Policy Group and Proxy Group Support: Manage multiple policies within Policy Group. Bulk policy assignment to Proxy Groups. Centralized update and deploy operations.
- Deploy and Versioning: Deploy policy changes to live environment. See which API Proxies use it (Policy Usage). Proxy Group and Policy Group usage reports.
Usage Scenarios
Configuring Policy Parameters
In this step, users can create a new policy or configure existing policy parameters to define access rules. The defined parameters directly affect how the policy works (e.g., which IPs will be allowed, geographical restrictions, conditional activations, etc.). This allows the policy to be customized according to organization-specific requirements and managed centrally.Creating a New XML Transformation Policy

Configuration Steps
For the description of Conditions and Error Message Customization panels, you can review the Conditions and Error Message Customization sections on the What is Policy? page.
For a complete guide on all layers, priority order and scenario examples of the error message configuration system, see the Error Message Configuration Guide page.

