Fetching File from FTP server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Fetching File from FTP server

chitrakala ramanujam
  
Hi All,

          Is there any services available in OFbiz ,How to Fetch the File from the FTP server and Save it into the Local System. If it is not, Could please help me to Fetch the file from FTP through OFBiz.

Thanks
Baga..
Reply | Threaded
Open this post in threaded view
|

Re: Fetching File from FTP server

hans_bakker
You found the ftp clientservices in FtpServices.java?
this allows you to get/put files from/to other sites.....

On Thursday 01 March 2007 16:00, chitrakala ramanujam wrote:
> Hi All,
>
>           Is there any services available in OFbiz ,How to Fetch the File
> from the FTP server and Save it into the Local System. If it is not, Could
> please help me to Fetch the file from FTP through OFBiz.
>
> Thanks
> Baga..
Reply | Threaded
Open this post in threaded view
|

Re: Re: Fetching File from FTP server

chitrakala ramanujam
In reply to this post by chitrakala ramanujam
  Hi Hans,

Thanks to your reply. But i didnt find any file named "Ftpservices.java" in opentaps latest version. Could you please tell me where i can find this one.

Thanks.

Chitrakala.R


On Thu, 01 Mar 2007 Hans Bakker wrote :

>You found the ftp clientservices in FtpServices.java?
>this allows you to get/put files from/to other sites.....
>
>On Thursday 01 March 2007 16:00, chitrakala ramanujam wrote:
> > Hi All,
> >
> >           Is there any services available in OFbiz ,How to Fetch the File
> > from the FTP server and Save it into the Local System. If it is not, Could
> > please help me to Fetch the file from FTP through OFBiz.
> >
> > Thanks
> > Baga..
Reply | Threaded
Open this post in threaded view
|

Re: Fetching File from FTP server

hans_bakker
Hi Baga,
Go to your eclipse development program and press alt-ctrl-r
type in 'ftpservices' and it will find it for you at:
ofbiz/framework/common/src/org/ofbiz/common/FtpServices.java

of course this is a service which you can use within an application or
application screen. If you need that you have to write that because i do not
know if there is something like that.

regards,
Hans

On Friday 02 March 2007 11:37, chitrakala ramanujam wrote:

>   Hi Hans,
>
> Thanks to your reply. But i didnt find any file named "Ftpservices.java" in
> opentaps latest version. Could you please tell me where i can find this
> one.
>
> Thanks.
>
> Chitrakala.R
>
> On Thu, 01 Mar 2007 Hans Bakker wrote :
> >You found the ftp clientservices in FtpServices.java?
> >this allows you to get/put files from/to other sites.....
> >
> >On Thursday 01 March 2007 16:00, chitrakala ramanujam wrote:
> > > Hi All,
> > >
> > >           Is there any services available in OFbiz ,How to Fetch the
> > > File from the FTP server and Save it into the Local System. If it is
> > > not, Could please help me to Fetch the file from FTP through OFBiz.
> > >
> > > Thanks
> > > Baga..
Reply | Threaded
Open this post in threaded view
|

Re: Fetching File from FTP server

joelfradkin@gmail.com
I was able to use this to FTP a file.
Took me a bit to understand how to call it.
I ended up pulling it into my hot-deploy, but now think it might of been there available, but I was not calling correctly.
in controller I ended up using
    <request-map uri="putFtpFile">
        <security https="false" auth="false"/>
        <event type="service" invoke="ftpPutFile"/>
        <response name="success" type="view" value="ftpComplete"/>
        <response name="error" type="view" value="ftpSend"/>
    </request-map>
My send form need all the required attributes (or you get IN missing error).
I copied the service XML content from its original location.
I did not seem to be able to get my hot deploy app to see the ftpPutfile. I tried using a location setting it where it was in common. i tried using services.xml in my hot deploy. I guess I just dont understand it. I use other services in other components, but this might of been my first java one.
I implemented the mod suggested adding a port number, just in case.
Joel Fradkin