Hi Dan,

I still don't think it's a good idea to interfere with the validation
in that way by default. As I commented here earlier, the corresponding
schema should include the any-attribute declaration if the header is
to be schema-validated. I think this implicit handling may lead to
confusion when other tools may strictly invalidate those headers.

Furthermore, there seems to be another aspect.  Today, I digged a
little bit and found that there is a use case to catch this error:
http://www.ws-i.org/profiles/BasicProfile-1.0-2004-04-16.html#annotation

here, the mustUnderstand header is declared to be prohibited in the
Claim header.

But as I said, we could offer an option to introduce an option to
ignore soap attributes or maybe all global attributes to cover for wsu
attributes as well.

How do you think?

aki

2013/2/19 Daniel Kulp <[email protected]>:
>
> I just made some more changes to this that will hopefully work a bit better.
>
> Basically, rather than remove the attributes from the Element, I stick an 
> error handler onto the Schema validator to ignore the errors related to the 
> mustUnderstand and Actor/Role attributes that SOAP clients may stick on the 
> headers.   Thus, if your schema does have them, JAXB should then be able to 
> read them and populate the values but they won't generate validation errors 
> if they are there.
>
> Can you give that a try to see if that then works for your use case?
>
> Dan
>
>
>
> On Feb 18, 2013, at 10:12 AM, Jesus Castillo <[email protected]> 
> wrote:
>
>> Hi Dan,
>>
>> For now, I disabled the validation of the attribute as a workaround until a
>> final solution is found.
>>
>> However, as this attribute is part of the schema defining the custom header,
>> I expect to retrieve it
>> too. In a perfect world, you shouldn't remove this attribute at all as this
>> is or should be part of the
>> custom schema if needed. So, if you are to remove it, I think this solution
>> should be the exception
>> and not the rule.
>>
>> Rgds,
>>
>> Jesus.
>>
>>
>>
>> --
>> View this message in context: 
>> http://cxf.547215.n5.nabble.com/CXF-4819-breaking-validation-of-mustUnderstand-attribute-tp5723289p5723304.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>
> --
> Daniel Kulp
> [email protected] - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>

Reply via email to