On Wednesday, August 10, 2011 9:23:56 AM akuhtz wrote:
> Hi,
> 
> I've a problem with the validation of SOAP headers. I found out that some
> errors are not detected but I don't know why.
> If I send a request with an invalid namespace in the SOAP header the request
> passes instead of returning a fault. If I do the same in the SOAP body, a
> fault is returned.
> 
> I've attached a small project that has 2 tests that I expected to return a
> fault (3 other tests show that the other test-"setup" pass).
> http://cxf.547215.n5.nabble.com/file/n4686434/cxf-header-problem.zip
> cxf-header-problem.zip
> 
> Can somebody tell me if it's a bug in CXF or my mistake? Thanks in advance.

When looking at the headers, for any header where the QName doesn't match a 
"known" header, and there is NOT a mustUnderstand=1 attribute, the header is 
parsed into a DOM and passed along to the endpoint in the context.   
Basically, CXF doesn't know what to do with it, but that's OK since it's not a 
must understand header.

In the two tests that are failing, the QName results in it not matching a 
known name.   Thus, it's pretty much ignored and passed along.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to