-
1. Re: Camel CXF Schema Validation
ffang Mar 1, 2012 1:40 AM (in response to gauthamr)Hi,
Most likely the servicemodel build from class but not from the wsdl, so can't pick up the schema infos, you can add wsdlLocation for your cxfEndpoint to force to build from wsdl to see if it helps.
Freeeman
-
2. Re: Camel CXF Schema Validation
gauthamr Mar 14, 2012 9:28 AM (in response to ffang)Hi ,
I did specify wsdl url but still its not validating the incoming xml. Is there any other setting i have to do?
Regards,
-
3. Re: Camel CXF Schema Validation
njiang Mar 15, 2012 9:33 PM (in response to gauthamr)What dataformat are you using ?
POJO, MESSAGE or PAYLOAD
Willem
-
4. Re: Camel CXF Schema Validation
gauthamr Mar 16, 2012 1:37 AM (in response to njiang)Hi,
I actually tried with every format, but still no validation exception occured.
Tried with default format as
Regards,
-
5. Re: Camel CXF Schema Validation
njiang Mar 20, 2012 8:34 PM (in response to gauthamr)Which version of Camel are you using?
If I remember right there are properties related bug was found last year.
Willem
-
6. Re: Camel CXF Schema Validation
gauthamr Apr 2, 2012 5:00 AM (in response to njiang)Hi,
I am using 2.7.3-fuse-00-53 version of camel.
Also i have noticed that only the cardinality of the fields is being verified as part of cxf's schema validation property being set it true. I guess this is because of service class reference to the java class having those XMLElement's defined.
Since there is no xsd reference I am not able to verify schema restrictions such as length restrictions and so on.
Kindly help me out in this.
Regards,
Gautham
-
7. Re: Camel CXF Schema Validation
ffang Apr 4, 2012 8:30 PM (in response to gauthamr)Hi,
To do schema validation, you need build the servicemodel from wsdl, so that can pick up all the restriction details from xsd, could you check the log to see if there's any thing like
Creating Service ****Service from WSDL ....(which means build servicemodel from wsdl, so the schema validation should be successfully performed) or Creating Service ****Service from class ... (which means build servicemodel from class, so the schema validation couldn't performed as the class has no restriction details)
Freeman
-