axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Schultz" <andreas.schu...@gmail.com>
Subject Re: Axis2: howto handle custom mustUnderstand Headers
Date Wed, 17 Oct 2007 08:27:18 GMT
Hi,

Thanks for you help, i have it working now.

It might be noteworthy that the mustUnderstand validation is executed
after the  inFlow is complete but before the message receiver is
invoked. So doing the header processor in the invokeBusinessLogic()
method of a generate ADB binding is to late.

I have now written my own in flow handler that processes the incoming
headers and a out flow handler that adds the headers in the response.

Andreas

On 10/16/07, ROSSILLE Samuel <samuel.rossille@cgi.com> 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:andreas.schultz@gmail.com]
> Envoyé: mardi 16 octobre 2007 15:54
> À: axis-user@ws.apache.org
> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message