Write file on SFTP location

 

Let’s see how we can write a file on SFTP location

Create a project in Anypoint Studio

Add a listener which accept the text payload which we want to write in SFTP file.

Write file on SFTP location

 

Add the logger to print incoming text

Write file on SFTP location

 

Drag and drop SFTP write activity

Write file on SFTP location

 

Provide the SFTP details and test the connection

  • Working directory – directory within the root directory
  • Host name – SFTP machine IP
  • Port – SFTP machine port
  • Username and password to authenticate the user

 

Add the filename in path

 

Set the filename before the write operation

 

Run the application and test in SOAP UI

 

File is created in target SFTP location

 

SOAP UI project – sftp-services-soapui-project

Sample Application – sftp-services

 

  
Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
 
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.


Share this:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments