Here's what I did:
1) In applicationContext.xml,
<cxf:cxfEndpoint id="MyEndPoint" address="http://locahost:test/" serviceClass="com.test.Test" wsdlURL="test.wsdl" >
<cxf:properties>
<entry key="schema-validation-enabled" value="true"/>
</cxf:properties>
</cxf:cxfEndpoint>
2) In camel-context.xml,
<camel:route id="myService">**It is compulsory to use POJO so that it will trigger JAXB validation. Otherwise you won't see any effect. Read this RedHat's document for further study.
<camel:from uri="MyEndPoint?dataFormat=POJO"/>
...
</camel:route>
No comments:
Post a Comment