And I believe you should process it via custom module since Axis2 verifies 
whether all headers with mustUnderstand attribute set to true, have been 
processed before Message Receiver being invoked.


Cheers,
-- Sanka


ROSSILLE Samuel wrote:
Hi

messageContext.getEnvelope().getHeader().examineAllHeaderBlocks()
gives you an Iterator over all the SOAPHeaderBlock of the message

hb.getMustUnderstand()
tells you if a the SOAPHeaderBlock hb must be understood.

hb.setProcessed()
tells Axis that your program understands a the SOAPHeaderBlock hb and has correctly completed it's processing.
Regards
Samuel Rossille

-----Message d'origine-----
De : Andreas Schultz [mailto:[EMAIL PROTECTED] Envoyé : mardi 16 octobre 2007 15:54
À : [email protected]
Objet : Axis2: howto handle custom mustUnderstand Headers

Hi all,

I need to handle custom header fields that have the mustUnderstand
attribute set to true(1).
Currently such an invocation triggers a fault:
org.apache.axis2.AxisFault: Must Understand check failed for header : MyID

Searching the maillinglist has turned up a references to a
MustUnderstandChecker, but i don't understand how i tell it what
header elements are supported.

Is there a magic trick to tell axis which headers my service likes?

Regards
Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to