Incoming SOAP requests are not validated against our XML XSD schemas in camel-cxf
Issue
-
We have defined XML elements like
NINO
with some specific content in the XML XSD schema files.
However, the CXF SOAP endpoint accepts SOAP XML requests and passes the same through camel route. Please note that the XML XSD schema validations are not applied to the incoming SOAP requests and that is where the problem is. -
We checked Camel documentation and they have :
<cxf:cxfEndpoint id="routerEndpoint" address="http://localhost:9000/router"
serviceClass="org.apache.camel.component.cxf.HelloService">
<cxf:schemaLocations>
<cxf:schemaLocation>classpath:wsdl/Message.xsd</cxf:schemaLocation>
</cxf:schemaLocations>
</cxf:cxfEndpoint>
-
The same stuff when installed in our local environment, the incoming SOAP requests are still not validated against our XML XSD schemas.
-
We think this has something to do with how XSD files are referenced in the OSGi bundle. Is there a bug in the OSGi, CXF stack ? Or , can we get some sample code on this ? How to reference multiple XML XSD files in the tag :
<cxf:schemaLocation>classpath:wsdl/Message.xsd</cxf:schemaLocation>
?
Environment
- Red Hat JBoss Fuse
- 6.x
- Apache Camel
- camel-cxf component
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.