Implement B2B using File transfer icon

Implement B2B using File transfer

(0 reviews)

home

This example application is a follow up to How To Series - Part 1 of the developer blog. It illustrates how to poll for a CSV file, transform the data in the file into a different format as needed by the target, encrypt the data (secure), and transfer the file to a remote SFTP server.

Example

This example polls for a folder, at an interval, and for a CSV file. The file contains fields such as SKU, Product Name, Description, and Type. The example transforms this input to a format as required by the B2B partner. Once the payload is transformed, it encrypts this payload using PGP encryption, and transfers this file to a SFTP server.

Set Up and Run the Example

  1. Open the Example project in Anypoint Studio from AnypointExchange.

  2. Install the Anypoint security module.

  3. Create a Public key ring file and Secret key ring file along with a secret passphrase to be used for PGP encryption. Copy the two .gpg files into the src/main/resources folder.Details on how these files can be created can be found here.

  4. Get the details for the target SFTP server to be used as the destination for the file.

  5. Put all the details gathered in the above steps inside src/main/app/mule-app.properties.

  6. Run the example application in Anypoint Studio or Standalone.

  7. Transfer the sample.csv file inside the src/main/resources/archive folder into src/main/resources/input.

  8. The file is picked up and transferred to the configured SFTP endpoint.

Documentation

Read full documentation in GitHub


Reviews

TypeExample
OrganizationMulesoft Inc.
Published by
MuleSoft Organization
Published onMar 17, 2018
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.0