geby
geby

Reputation: 374

Mule Schema validation when wsdl has embedded xsd

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).

Upvotes: 1

Views: 1563

Answers (1)

user1760178
user1760178

Reputation: 6717

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.

Upvotes: 1

Related Questions