RE: XProc to access XML data from FTP (with authentication)

Hi Norm,

Thanks for your note. I actually created an issue for you on Github (https://github.com/ndw/xmlcalabash1/issues/225), but closed it when I learned (thanks to helpful Oxygen support) that my test case in Oxygen was perhaps giving me misleading results. In other words, it worked there, but not directly against the latest version of Calabash. Oxygen support indicated that they provide internal support in Java for a number of protocols including FTP and that the default protocol handlers that the Java runtime provided were likely missing a handler for FTP. I kind of assumed this meant that it was no longer a Calabash issue, but an issue with my environment. 

As you point out, FTP support with authentication is probably not included in the Apache HTTP client libraries. I suppose you could employ Apache's FTP client, as well, but I'm not sure if that would require a new XProc element (e.g. ftp-get). My current XProc simply drops the FTP URI (with embedded authentication) into the p:document element:

<p:document href="ftp://user:passwordd@ftp.example.org/example.xml"/>

This might not be the best approach, but it worked in Oxygen so I assumed all would be well. 

Thanks,
David

-----Original Message-----
From: Norman Walsh [mailto:ndw@nwalsh.com] 
Sent: Thursday, September 24, 2015 4:31 PM
To: XProc Dev
Subject: Re: XProc to access XML data from FTP (with authentication)

"Dunlap, Zachariah" <ZDunlap@ap.org> writes:
> Is there a different (correct) way for us to work with FTP servers 
> that require authentication?

Alternatively, can someone point me to a summary of what needs to change in XML Calabash to make this work? Presumably it's just not a feature of the Apache HTTP Client libraries.

                                        Be seeing you,
                                          norm

--
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com


The information contained in this communication is intended for the use
of the designated recipients named above. If the reader of this 
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any review,
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please 
notify The Associated Press immediately by telephone at +1-212-621-1898 
and delete this email. Thank you.
[IP_US_DISC]

msk dccc60c6d2c3a6438f0cf467d9a4938

Received on Friday, 25 September 2015 09:44:33 UTC