Hi,

You can get the headers for example in the log mediator like this,

            <log level="custom">
                <property xmlns:s11="
http://schemas.xmlsoap.org/soap/envelope/";
                      xmlns:s12="http://www.w3.org/2003/05/soap-envelope";
                      name="headers" expression="s11:Header/* |
s12:Header/*"/>
            </log>

Here the expression is written to get both headers in SOAP 1.1 and
1.2envelopes. You can change the XPath expression to get a specific
header
element.

Hope this helps.

Upul


On Jan 16, 2008 1:43 AM, David Purcell <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I'm setting some custom child elements in the soap:header of a request,
> and wanted to pull them down for logging in a synapse log or dbreport
> mediator.  But I'm not sure how to craft the expression.  It seems like the
> soap:body payload is accessible via expressions (that works fine), but not
> soap:header values.
>
> Any hints would be appreciated.
>
> Thanks,
>
> David
>
> ===============================
> David Purcell
> Systems Architect
> MN State Colleges and Universities
> [EMAIL PROTECTED]
> ==============================+
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to