Hi Aman,

Please refer the following documentations

[1]
https://wso2.com/library/articles/2012/01/wso2-esb-example-file-exchanging-hub-part-1/
[2]
https://docs.wso2.com/display/EI611/Configuring+File+Inbound+Protocol+for+FTP%2C+SFTP+and+FILE+Connections

Thanks,
Viduranga.

On Mon, Jul 16, 2018 at 4:39 PM Aman Singh <amansingh0...@gmail.com> wrote:

> Hi Team,
>
> I am trying to copya file from FTP server to local machine, below is my
> code: -
>
> <proxy name="FTPFileProxy" startOnLoad="true" transports="http https"
> xmlns="http://ws.apache.org/ns/synapse";>
>     <target>
>         <inSequence>
>             <fileconnector.ftpOverProxy>
>                 <proxyHost>{proxyhost name}</proxyHost>
>                 <proxyPort>{proxyhost port}</proxyPort>
>                 <proxyUsername>{proxy username}</proxyUsername>
>                 <proxyPassword>{proxy pass}</proxyPassword>
>                 <ftpServer>{ftpServerIP}</ftpServer>
>                 <ftpPort>{ftpServerPort}</ftpPort>
>                 <ftpUsername>{ftpUsername}</ftpUsername>
>                 <ftpPassword>{ftpPassword}</ftpPassword>
>                 <targetFile>/home/subfolder/file.xml</targetFile>
>             </fileconnector.ftpOverProxy>
>             <fileconnector.copy>
>                 <source>ftp://admin:pass@localhost
> /home/subfolder/file.xml</source>
>                 <destination>file:///D:/WSO2 testing files/Destination
> folder File Connector</destination>
>                 <setTimeout>100000</setTimeout>
>                 <setPassiveMode>true</setPassiveMode>
>                 <setSoTimeout>100000</setSoTimeout>
>             </fileconnector.copy>
>             <log description="LOG" level="custom">
>                 <property name="Property Name"
> value="===================FTP LOGGGER"/>
>             </log>
>         </inSequence>
>         <outSequence>
>             <respond/>
>         </outSequence>
>         <faultSequence/>
>     </target>
>
> </proxy>
>
> But I am getting the error saying "org.apache.axis2.AxisFault: The input
> stream for an incoming message is null."
>
> Please help
>
> Thank you,
> Aman
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
Regards*,*
*Viduranga Gunarathne*
*Software Engineer*
*WSO2 (Pvt) Ltd.*

*Mobile : *+94712437484
*Email   : *vidura...@wso2.com
*Web     : *http://wso2.com
*Blog    : *http://medium.com/vlgunarathne
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to