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
component. 

So I want to just set up some static XML after the message is generated from
the timer. Ive got this working now using escaped XML in the XML
configuration - but thats a bit messy and was wondering was there an easier
/ nicer way to do it?

Also Im having a few problems setting the SOAPAction header on the http call
- what's the syntax for that (in XML config) 

Im trying to avoid writing java or using cxf and trying to see how far I can
get with just xml config - in spring integration there is a web service
endpoint that wraps the xml in soap before sending it, but here using the
http endpoint Im guessing I just have to put the soap in manually?



Claus Ibsen-2 wrote:
> 
> On Wed, Feb 25, 2009 at 1:09 PM, david_geary <david_ge...@lagan.com>
> 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:
>>
>> <route>
>> <from uri="timer://myTimer?fixedRate=true&amp;period=2000"/>
>> <setBody>
>>        <simple>${in.body} World!</simple>
>> </setBody>
>> <to uri=....>
>> </route>
>>
>> But how can i use this to set xml content? What's the correct syntax for
>> this - or is there a better way to do it? Reading the content from a file
>> would suit also.
> Hi
> 
> There are many ways of transforming/translate a message with Camel
> http://camel.apache.org/message-translator.html
> 
> How are you gonna call the webserivce? Are you using a webservice
> framework or what?
> 
> 
>> --
>> View this message in context:
>> http://www.nabble.com/Setting-initial-xml-content-for-timer-mesages-tp22201587p22201587.html
>> Sent from the Camel - Users (activemq) mailing list archive at
>> Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Setting-initial-xml-content-for-timer-mesages-tp22203133p22209978.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to