XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Bruce CantorSubject: Can a pipeline send a file by FTP, using explicit ftp over TLS?
Author: Bruce Cantor
Date: 16 Jun 2023 01:23 PM
Originally Posted: 16 Jun 2023 01:16 PM
Hello Forum,

I'm facing a situation where a customer requests us to deliver a file to their FTP server using explicit FTP over TLS. However, while exploring the available properties in the Pipeline output component, I couldn't find an option to specify this behavior. I also couldn't find a solution using XQuery. Am I overlooking something, or should I advise the customer to switch to the more secure SFTP protocol?

Any guidance would be appreciated. Thank you.

/Bruce

Posttop
Ivan PedruzziSubject: Can a pipeline send a file by FTP, using explicit ftp over TLS?
Author: Ivan Pedruzzi
Date: 23 Jun 2023 09:20 PM

See XML Pipeline Server’ s User guide chapter “FTP Operations”.

Here an example

declare namespace xps_ftp = "ddtekjava:com.ivitechnologies.pipeline.ext.net.FTP";

declare function xps_ftp:sendFile($element as element(), $uriLocalFile as xs:string, $targetPath as xs:string) as xs:boolean external;
declare function xps_ftp:sendString($element as element(), $data as xs:string, $targetPath as xs:string) as xs:boolean external;

declare variable $session := <root host='127.0.0.1' port='21' path='/' user='ftp' password='ftp' ftps_protocol="TLS"/>;
declare variable $file_url := resolve-uri("myfile.xml", fn:static-base-uri());
declare variable $target_file := "myfile.xml";

xps_sftp:sendFile($session, $file_url, $target_file)

or you can send a string

xps_sftp:sendString($session, "some nice data", $target_file)


You will need the following jars in your Stylus Studio project’s classpath to test the query:

xmlpipelineserver.jar
json-20090211.jar
commons-net-3.6.jar


Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.