On 23/03/2008, spasco <[EMAIL PROTECTED]> wrote:
>
> How would you go about extracting XML document from a URL then saving that
> file to disk? I'd like this setup to poll the URL about once per day.
something like this should do the trick...
from("http://foo.bar/something.xml?delay=1000").to("file://mydir/something.xml");
where the delay is the polling delay in milliseconds.
I guess we could do with an easier mechanism to configure the polling
interval; maybe including in the DSL some kind of mechanism to specify
polling times.
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com