Re: Setting initial xml content for timer mesages

2009-02-26 Thread Ashwin Karpe
Hi David, This is not possible without adding a processor behaving like a payload transformer/replacer. The way to do this is http://camel.apache.org/schema/spring";> In myBodyReplacementProcessor public class MyBodyReplacementProcessor implements Proces

Re: Setting initial xml content for timer mesages

2009-02-25 Thread Claus Ibsen
On Thu, Feb 26, 2009 at 5:31 AM, Hadrian Zbarcea wrote: > Looks like velocity is the simplest solution for your problem here. > Hadrian Yeah I was about to suggest the same, Velocity, Freemarker og that StringTemplate. Can all read a template file and transform it. However you can leave the templa

Re: Setting initial xml content for timer mesages

2009-02-25 Thread Hadrian Zbarcea
Looks like velocity is the simplest solution for your problem here. Hadrian On Feb 25, 2009, at 8:46 AM, Claus Ibsen wrote: On Wed, Feb 25, 2009 at 1:09 PM, david_geary wrote: I want to use a timer to call a web service so i need to set the xml body of the message. Im using the xml conf

Re: Setting initial xml content for timer mesages

2009-02-25 Thread david_geary
Well that's another part I'm trying to work out - what i want to do is set up a timer to call a web service every so often and then further process the results of that call. So I was just wanting to set the message to be the xml request and then fire that directly at the web service via an http co

Re: Setting initial xml content for timer mesages

2009-02-25 Thread Claus Ibsen
On Wed, Feb 25, 2009 at 1:09 PM, david_geary wrote: > > I want to use a timer to call a web service so i need to set the xml body of > the message. Im using the xml configuration so I know I can do this: > > > > >        ${in.body} World! > > > > > But how can i use this to set xml content?