Contact Us 1-800-596-4880

SOAP Schema Validation Policy

Policy Name

SOAP Schema Validation

Summary

Validates incoming traffic against a specified WSDL schema

Category

Security

First Omni Gateway version available

v1.10.0

Release Notes

SOAP Schema Validation Policy

Returned Status Codes

The policy returns a 400 for a client error or 500 for a server error. Error messages are defined by SOAP standard responses.

Summary

The Schema Validation policy only supports SOAP 1.1 and 1.2 APIs.

Use the SOAP Schema Validation policy to block incoming requests that don’t conform to the the defined WSDL schema. This policy prevents malformed or malicious SOAP messages from reaching the backend and enforces contract compliance between clients and services.

Payload Handling

The SOAP Schema Validation policy processes only requests. Responses pass through unchanged.

The policy buffers the full request body to validate it against the WSDL. A SOAP request without a body returns a fault. The policy answers a GET request for the WSDL (?wsdl) directly with the WSDL, without processing a body. Other methods return a "Method not allowed" fault.

The policy chooses the SOAP version of its fault responses from the configured service port binding, not from the SOAPAction header (Omni Gateway 1.14.5 and later versions).

Buffered payloads count toward the Omni Gateway payload limit, which is 1 MB by default. To change the limit on a self-managed Omni Gateway, set the FLEX_DOWNSTREAM_CONNECTION_BUFFER_LIMIT_BYTES environment variable. In Connected Mode, you can also set Global connection buffer limit in Runtime Manager. For more information, see Configure Global and Routing Settings in Runtime Manager. For more information about the limit, see Omni Gateway Limits and Performance Metrics.

Configure Policy Parameters

Omni Gateway Local Mode

When you apply the policy via declarative configuration files, Refer to the following policy definition and table of parameters:

- policyRef:
    name: soap-validation
  config:
    wsdlUrl: <string> // REQUIRED
    encoding: <string> // REQUIRED, default 'UTF-8'
    serviceName: <string> // REQUIRED
    servicePort: <string> // REQUIRED

Determines if the schema is specified in this YAML resource, or if it’s specified in the API Context from Exchange (Connected Mode only). Supported values: inline or context. You must specify inline when configuring the policy in Local Mode.

Parameter Required Default Value Description

wsdlUrl

Yes

NA

URL of where to access the WSDL

encoding

Yes

UTF-8

Encoding of the WSDL

serviceName

Yes

NA

SOAP service name defined in the WSDL that validates requests

servicePort

Yes

NA

SOAP port name defined in the WSDL that validates requests

Resource Configuration Example

- policyRef:
    name: soap-validation
  config:
    wsdlUrl:
    encoding: UTF-8
    serviceName:
    servicePort:

Managed Omni Gateway and Omni Gateway Connected Mode

When you apply the policy from the UI, the following parameters are displayed:

Field Description

Service Name

SOAP service name defined in the WSDL that validates requests

Service Port

SOAP port name defined in the WSDL that validates requests