You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jose <ja...@gmail.com> on 2014/06/20 11:13:30 UTC
Camel CXF Schema validation PAYLOAD mode
Hi,
I am using camel CXF component and I am trying to run a schema validation
for the SOAP Requests. I have my CXF Endpoint defined using
<cxf:cxfendpoint> and I have specified the wsdlURL, and xmlns attribues.
Also, I am using PAYLOAD mode.
I've tried to add this to my CXF endpoint definition but it looks like it's
not doing anything.
<cxf:properties>
<entry key="schema-validation-enabled" value="true" />
</cxf:properties>
If a send non-valid request, I am not getting any validation error.
Do I need to use a different mode?
I am using Camel 2.11.
Thank you very much!
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-Schema-validation-PAYLOAD-mode-tp5752627.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel CXF Schema validation PAYLOAD mode
Posted by Willem Jiang <wi...@gmail.com>.
CXF we do schema validation in databinding(like jaxb) when marshal/unmarshal.
When you use it in PAYLOAD mode, the schema validation doesn’t work out of box.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On June 20, 2014 at 5:42:30 PM, Jose (jagaviles@gmail.com) wrote:
> Hi,
>
> I am using camel CXF component and I am trying to run a schema validation
> for the SOAP Requests. I have my CXF Endpoint defined using
> and I have specified the wsdlURL, and xmlns attribues.
> Also, I am using PAYLOAD mode.
>
> I've tried to add this to my CXF endpoint definition but it looks like it's
> not doing anything.
>
>
>
>
>
> If a send non-valid request, I am not getting any validation error.
>
> Do I need to use a different mode?
>
> I am using Camel 2.11.
>
> Thank you very much!
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-Schema-validation-PAYLOAD-mode-tp5752627.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>