Hello,

Here is a recipe for configuring and using the FTP Source, stitched together from the emails in this thread:
http://www.planetcocoon.com/node/1960

I'd like to draw your attention to a few features of this post:
- folksonomy tagging: this node is tagged with "sitemap", "ftp", "sources" and "generator". Any logged in user can tag: choose more terms for this node if you like! View all tags at http://www.planetcocoon.com/alltags - taxonomy tagging: this node is assigned the Recipes term of the Resources taxonomy (for editors to assign - anyone else what to be an editor?). You can see a complete list of recipes at http://www.planetcocoon.com/recipes. - hierarchical book page: for now, this node belongs to the Sources chapter of the Cocoon Sitemap book. You can see a complete list of books at http://www.planetcocoon.com/book. - comments: you can add comments, if you're logged in. Thus, your tips and experiences are not distributed throughout the post a la wiki, but appear in discrete, threaded units.

Now, let's complete the recipe. We need your comments based on your experience. What's missing? What's incorrect? To comment, you will need to log on to Planet Cocoon. Sorry, it's a trial, but hopefully not too taxing for someone who really wants us to arrive at a completely documented solution! If you have posted to either the users' or developers' mailing list then there is already an account for you at Planet Cocoon. To use it, all you need to do is request a new password (at http://www.planetcocoon.com/user/password), and enter your usual email address. A password will be emailed to you immediately.

As the site disclaimer says, "Every effort will be made to ensure that information generated on Planet Cocoon will end up in the official documentation."

Cheers,
Mark


On 23 May 2005, at 14:04, Sylvain Wallez wrote:

Laurent Perez wrote:

Hello

I need to retrieve a customer's well-formed XML document hosted on
it's own server, FTP protocol being the only available communication
channel. After being retrieved, I need to parse it, and store a few
nodes values into my database. Is there any builtin cocoon component
or flow snippet to help me achieve this ?

I was looking - wiki, docs, google, planetcocoon - for something like
"<map:generate src="ftp://login:[EMAIL PROTECTED]"><map:parameter
name="method" value="GET"/><map:parameter name="file"
value="foo.xml"/></map:generate>", but didn't find anything.


Have you tried this syntax? As the JDK supports FTP, this may work. I don't know however it the JDK understands the "login:password" syntaxt.

Otherwise, there is an FTPSource in excalibur-sourceresolve that has explicit support for this (and also for writing to an FTP server). To use it, just add the following in <source-factories> in cocoon.xconf: <component-instance class="org.apache.excalibur.source.impl.FTPSourceFactory" name="ftp"/>

Sylvain

--
Sylvain Wallez                        Anyware Technologies
http://apache.org/~sylvain            http://anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to