The file URI should not have the 'vfs' prefix.

https://docs.wso2.com/display/EI640/VFS+Transport#VFSTransport-VFSservice-levelparameters

On Fri, Oct 12, 2018 at 2:09 PM, Aman Singh <[email protected]> wrote:

> Hi,
>
> I am using VFS SFTP to copy file from server to local, below is my proxy
> code:-
>
> <proxy name="SFTPFileProxy" startOnLoad="true" transports="vfs" xmlns="
> http://ws.apache.org/ns/synapse";>
> <target>
> <inSequence>
> <log description="LOG" level="custom">
> <property name="Property Name" value="===================FTP LOGGGER"/>
> </log>
>  :- ""
> </inSequence>
> <outSequence/>
> <faultSequence/>
>     </target>
>     <parameter name="transport.PollInterval">300</parameter>
>     <parameter name="transport.vfs.FileURI">vfs:sftp://username:password@
> hostname:22/home/folder1?sftpPathFromRoot=true</parameter>
>     <parameter name="transport.vfs.ContentType">text/xml</parameter>
>     <parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
>     <parameter name="transport.vfs.MoveAfterFailure">file:///D:/
> Fail</parameter>
>     <parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>
>     <parameter name="transport.vfs.FileNamePattern">.*.*</parameter>
>     <parameter name="transport.vfs.MoveAfterProcess">file:///D:/
> AfterProcess</parameter>
> </proxy>
>
> But it is giving me the error saying "ERROR - ClientUtils The system
> cannot infer the transport information from the vfs:
> vfs:sftp://username:password@hostname:22/home/folder1?
> sftpPathFromRoot=trueURL".
>
> If I use File connector to copy, it is successfully able to copy, but
> using VFS it is giving above error.
>
> I have already enabled VFS in axis2.xml
>
> Any tips to resolve the issue?
>
> Thank you,
> Aman
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Thishani Lucas*
*Software Engineer*
*WSO2 Lanka (Private) Limited**: http://wso2.com <http://wso2.com/>*
*lean.enterprise.middle-ware*

*Tel: +94 77 2556931 *

*LinkedIn: https://www.linkedin.com/in/thishani-lucas/
<https://www.linkedin.com/in/thishani-lucas/>*


<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to