Read file from SFTP location

 

Let’s see how we can read a file from SFTP location

Create a project in Anypoint Studio

Add a listener which accept the filename as query parameter which we want to read from SFTP location.

Read file from SFTP location

 

Add the logger to print incoming filename

Read file from SFTP location

 

Drag and drop SFTP read activity and configure the SFTP connection

Read file from 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

Read file from SFTP location

 

File is available in SFTP location

 

Run the application and test in SOAP UI

 

SOAP UI project – sftp-services-read-soapui-project

Sample Application – sftp-service

 

  
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