1
votes

In Mule ESB I want to validate incoming SOAP/XML, using a standard Mule "schema-validation filter".

Something like:

<mulexml:schema-validation-filter schemaLocations="xxx.xsd" name="xxxValidationFilter"/>

However this kind of definition seem to assume that the schema is located in a separate xsd-file, whereas in a lot of cases the schema definition is embedded in the "wsdl:types" element of a wsdl-file.

Is there any way to use the Mule schema-validation-filter to validate against schema's which are embedded in the wsdl (except for copying the schema element definitions out of the wsdl and into a separate xsd-file).

1

1 Answers

1
votes

Mule service element tags which expose the service haave an attribute that can enable validation on the incoming request.

validationEnabled="true"

<cxf:simple-service validationEnabled="true"/>
<cxf:jaxws-service validationEnabled="true"/>
<cxf:proxy-service validationEnabled="true"/>

For more information refer to the following Mule documentation link.

http://www.mulesoft.org/documentation/display/current/Building+Web+Services+with+CXF

Hope this helps.