Do you have a schema for the SOAP header defined someplace? That seems rare due to the variety of information that may be placed there. Normally the structure-checking is just the SOAP body. You may need to use a JAX-WS Handler or Interceptor[1] to read in the header, and manually validate with the JAXB API--but YMMV, I haven't done this before.

Glen

[1] http://www.jroller.com/gmazza/entry/jaxws_handler_tutorial

On 08/16/2011 03:33 PM, Evangelina wrote:
Hi all,

I enabled the schema validation by setting the "schema-validation-enabled"
property to "true", nevertheless, although the elements in the body are
being validated correctly, the schema validation in the elements of the
SoapHeader are being ignored.

 From what I see in the CXF implementation the schema validation only checks
the elements in the body of the soap message. Is this so? And if so, how can
I validate the schema of the elements in the header?

Thanks
Eva

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Schema-validation-is-not-validating-elements-from-SoapHeader-tp4705565p4705565.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Glen Mazza
Talend - http://www.talend.com/ai
Blog - http://www.jroller.com/gmazza
Twitter - glenmazza


Reply via email to