Advertisement
Guest User

sftp-mule

a guest
Feb 8th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.16 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <mule xmlns:sftplite="http://www.mulesoft.org/schema/mule/sftplite" xmlns:sftp="http://www.mulesoft.org/schema/mule/sftp"
  3.     xmlns:ftp="http://www.mulesoft.org/schema/mule/ee/ftp" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking"
  4.     xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:http="http://www.mulesoft.org/schema/mule/http"
  5.     xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
  6.     xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7.     xsi:schemaLocation="http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
  8. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
  9. http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
  10. http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
  11. http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd
  12. http://www.mulesoft.org/schema/mule/ee/ftp http://www.mulesoft.org/schema/mule/ee/ftp/current/mule-ftp-ee.xsd
  13. http://www.mulesoft.org/schema/mule/sftp http://www.mulesoft.org/schema/mule/sftp/current/mule-sftp.xsd
  14. http://www.mulesoft.org/schema/mule/sftplite http://www.mulesoft.org/schema/mule/sftplite/current/mule-sftplite.xsd">
  15.     <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
  16.  
  17.     <flow name="simpletestFlow">
  18.             <http:listener config-ref="HTTP_Listener_Configuration"
  19.             path="/file" doc:name="HTTP" />
  20.         <foreach collection="#[message.inboundAttachments]" doc:name="For Each">
  21.             <object-to-byte-array-transformer doc:name="Object to Byte Array"/>
  22.             <sftp:outbound-endpoint exchange-pattern="one-way" host="localhost" port="22" path="/users/sftp_user/Downloads" user="sftp_user" password="testsftp" responseTimeout="10000" duplicateHandling="overwrite" doc:name="SFTP"/>
  23.         </foreach>
  24.     </flow>
  25. </mule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement