You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Devcol <de...@googlemail.com> on 2010/11/15 17:05:34 UTC

Reading/Writing Dynamic Http Headers using SOAP

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

Re: Reading/Writing Dynamic Http Headers using SOAP

Posted by Devcol <de...@gmail.com>.
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 <de...@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
>

RE: Building ODE 1.3.5

Posted by Hart Liu <ha...@live.com>.
Hi Tammo,
Thanks for the info! Yes, I am on buildr 1.4.0. That might be the problem. 
Hart
 
> Date: Wed, 17 Nov 2010 14:34:51 +0100
> From: tvanlessen@gmail.com
> To: user@ode.apache.org
> Subject: Re: Building ODE 1.3.5
> 
> Hi Hart,
> 
> ODE trunk builds with the most recent version of buildr (1.4.3 if I'm
> not mistaken).
> 
> Best,
> Tammo
> 
> On 17.11.2010 03:48, Hart Liu wrote:
> > 
> > Hi all,
> > 
> > I am trying to build ODE 1.3.5. I checked out all the source codes from SVN trunk, but got the following error while building it:
> > 
> > E:\ode-trunk>buildr package test=no
> > (in E:/ode-trunk, development)
> > Buildr aborted!
> > undefined local variable or method `hibernate_requires' for project("ode:da
> > o-hibernate-db"):Buildr::Project
> > 
> > Anyone had this problem before? any way to get around it?
> > 
> > Thanks,
> > Hart 
> 
> -- 
> Tammo van Lessen - http://www.taval.de
 		 	   		  

Re: Building ODE 1.3.5

Posted by Tammo van Lessen <tv...@gmail.com>.
Hi Hart,

ODE trunk builds with the most recent version of buildr (1.4.3 if I'm
not mistaken).

Best,
  Tammo

On 17.11.2010 03:48, Hart Liu wrote:
> 
> Hi all,
>  
> I am trying to build ODE 1.3.5. I checked out all the source codes from SVN trunk, but got the following error while building it:
>  
> E:\ode-trunk>buildr package test=no
> (in E:/ode-trunk, development)
> Buildr aborted!
> undefined local variable or method `hibernate_requires' for project("ode:da
> o-hibernate-db"):Buildr::Project
>  
> Anyone had this problem before? any way to get around it?
>  
> Thanks,
> Hart 		 	   		  

-- 
Tammo van Lessen - http://www.taval.de

Building ODE 1.3.5

Posted by Hart Liu <ha...@live.com>.
Hi all,
 
I am trying to build ODE 1.3.5. I checked out all the source codes from SVN trunk, but got the following error while building it:
 
E:\ode-trunk>buildr package test=no
(in E:/ode-trunk, development)
Buildr aborted!
undefined local variable or method `hibernate_requires' for project("ode:da
o-hibernate-db"):Buildr::Project
 
Anyone had this problem before? any way to get around it?
 
Thanks,
Hart