ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Devcol <dev...@gmail.com>
Subject Re: Reading/Writing Dynamic Http Headers using SOAP
Date Mon, 06 Dec 2010 12:12:20 GMT
This http://ode.apache.org/process-contexts.html would have probably helped
me if I was using 2.0.

This is my solution:

I created a tomcat filter that would capture my http headers and place it in
a ThreadLocal object.

A MEX Interceptor would associate the message exchange id and the headers
from the ThreadLocal object into a static dictionary in onBPELServerInvoked.

The MEX Interceptor onJobScheduled method would lookup the headers from the
static dictionary for the message exchange id and assign it to a ThreadLocal
object.

Finally, I extended CommonsHTTPTransportSender to add my custom headers from
the ThreadLocal object to the MessageContext.

No ODE code was changed; just configuration files.

Hopefully, I won't encounter race conditions :)

Regards,

Col

On 15 November 2010 16:05, Devcol <devcol@googlemail.com> wrote:

> Hi,
>
>
>
> I am trying to read from and write to HttpHeaders using the default SOAP
> bindings.
>
>
>
> I read this article http://ode.apache.org/headers-handling.html that
> allowed me to read and set Dynamic SOAP Headers.  This works.
>
>
>
> I also referred to this
> http://ode.apache.org/wsdl-11-extensions-for-rest.html to see if any of
> these steps were applicable. Nothing helped me here.
>
>
> I am interested to know if, via the BPEL, is it possible to read and write
> custom http headers in ApacheODE when using SOAP?
>
>
> Regards,
>
>
>
> Colin
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message