webMethods Integration Cloud and Cloud Deployment Documentation 6.0.0 | webMethods Integration Cloud | Applications | Predefined Applications | File Transfer Protocol (FTP/FTPS) | FTP Predefined Operations | putFile
 
putFile
Transfers a file to a remote FTP server.
Input Parameters
remoteFile
String The name of the remote file.
transferType
String FTP file transfer mode (ascii or binary). The default is ascii.
writeOption
String Optional. Indicates whether to send a STOR or a STOU (Store as Unique File) command to the remote FTP server. Set to:
*true to send a STOU (Store as Unique File) command.
*false to send a STOR command. This is the default.
contentStream
java.io.InputStream, byte[ ], or String Data to be transferred to the remote file.
Output Parameters
statusCode
String Standard FTP protocol status code.
statusMessage
String Standard FTP protocol status message.
Usage Notes
Some FTP servers do not support “putting” a unique file. When using the putFile operation to put a unique file to an FTP server that does not support putting a unique file, you may encounter the following error:
com.wm.app.b2b.server.ServiceException: 500 'STOU': command not understood.

Copyright © 2014- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.