SOAPMessageValidation policy

This pageapplies toApigee andApigee hybrid.

View Apigee Edge documentation.

The SOAPMessageValidation policy does the following:

  • Validates any XML message against their XSD schemas
  • Validates SOAP messages against a WSDL definition
  • Determines well-formedness of JSON and XML messages

While the name of this policy in the UI isSOAPMessageValidation, the policy validates more than just SOAP messages. This section refers to the policy as theMessageValidation policy.

Message validation provides the following benefits:

  • Immediately informs app developers that are consuming your API if their requests are non-conformant or incomplete.
  • Pinpoints issues in requests, such as XML tags that are not properly closed.
  • Protects backend services by blocking XML or SOAP messages with structures that might cause unpredictable behavior.
  • Reduces time spent troubleshooting, searching forums, or consulting with tech support.
  • Encourages developers to familiarize themselves with the XML schema WSDL definition to eliminate validation errors, making well-understood XML schemas a key component of your API documentation.

This policy is aStandard policy and can be deployed to any environment type. For information on policy types and availability with each environment type, seePolicy types.

Videos

Watch the following videos to learn more about the MessageValidation policy:

VideoDescription
Validate XML requestValidate the XML request for an API using the MessageValidation policy.
Validate JSON requestValidate the JSON request for an API using the MessageValidation policy.