Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I agree with what Ratha said but you will also need to enable the VFS transports in order to use VFS in your proxy services created under the WSO2 ESB.</p> <p>You can do that by going to <strong>Configure</strong> menu tab on the left of the WSO2 ESB's dashboard, select <strong>Transports</strong> and hit Enable on Lister and Sender under VFS Transport (depending which one you will use in your proxies - it's safe to have both enabled though). Hope it helps.</p> <p>The following proxy service is listening for a folder called <em>in</em> on an SFTP location and copying back to the SFTP in <em>copied</em> folder:</p> <pre class="lang-xml prettyprint-override"><code>&lt;proxy xmlns="http://ws.apache.org/ns/synapse" name="SFTPtry" transports="vfs" statistics="disable" trace="disable" startOnLoad="true"&gt; &lt;target&gt; &lt;inSequence&gt; &lt;log level="full" /&gt; &lt;property name="OUT_ONLY" value="true" /&gt; &lt;send&gt; &lt;endpoint&gt; &lt;address uri="vfs:sftp://user:password@your.ftp.site.com:22/copied" /&gt; &lt;/endpoint&gt; &lt;/send&gt; &lt;/inSequence&gt; &lt;/target&gt; &lt;parameter name="transport.PollInterval"&gt;10&lt;/parameter&gt; &lt;parameter name="transport.vfs.ActionAfterProcess"&gt;MOVE&lt;/parameter&gt; &lt;parameter name="transport.vfs.FileURI"&gt;vfs:sftp://user:password@your.ftp.site.com:22/in&lt;/parameter&gt; &lt;parameter name="transport.vfs.MoveAfterProcess"&gt;vfs:sftp://user:password@your.ftp.site.com:22/out&lt;/parameter&gt; &lt;parameter name="transport.vfs.MoveAfterFailure"&gt;vfs:sftp://user:password@your.ftp.site.com:22/fail&lt;/parameter&gt; &lt;parameter name="transport.vfs.FileNamePattern"&gt;.*.txt&lt;/parameter&gt; &lt;parameter name="transport.vfs.ContentType"&gt;text/plain&lt;/parameter&gt; &lt;parameter name="transport.vfs.ActionAfterFailure"&gt;MOVE&lt;/parameter&gt; &lt;/proxy&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload