× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



File sharing is definitely a possibility.

My experiences in the past (read: several years ago) have been that mapped network drives between the iSeries and Windows do not work reliably. More than once users would one morning discover they were unable to access their mapped drive. I would try remapping drives over and over without success. When we tried to get support, Microsoft would say it's an iSeries problem, and IBM would say it's a Microsoft problem. Maybe things have gotten better. But it left a bad taste in my mouth that never went away.

I'm wanting to explore my possibilities with HTTP\HTTPS...to understand what my options are for using HTTP\HTTPS to do application-to-application file transfers.

Thanks,
Kelly


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Grizzly Malchow
Sent: Friday, February 13, 2015 1:43 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Using HTTP\HTTPS to Transfer Files Between Servers?

Can you use NFS, or QNTC to connect to the Windows server? If so, what would prevent you from using CL, RPG, or COBOL to access the files on the Windows server and do all of the read/write stuff in said languages?

Maybe there is more to it that I understand but you could definitely read the files and write the files if you can connect via a file share. To me that would alleviate the overhead of doing HTTP requests to move the files around.

With a share, from an IBI i programming standpoint, the files would be part of the IFS.


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kelly Cookson
Sent: Friday, February 13, 2015 9:00 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Using HTTP\HTTPS to Transfer Files Between Servers?

We have a need to move stream files between the IBM i server and Windows servers.

I know I can use FTP. My question here is about what is possible. Since FTP and HTTP are both TCP/IP protocols, it should be possible to move files between the IBM i server and Windows servers using HTTP\HTTPS.

Suppose I have an Apache web serve set up on the IBM i server and an IIS web server set up on a Windows server. Here are the processes I want to accomplish.

FROM IBM i TO WINDOWS (INITIATED ON IBM i) 1. A COBOL or RPG program populates a DB2/400 physical file with data based on business logic.
2. A CL program uses the CPYTOIMPF command to create a stream file in the IFS based on the physical file.
3. A process on the IBM i sends a PUT or POST HTTP request to the IIS web server in order to move the file to the Windows server for storage.
4. A CL program uses the RMVLNK command to delete the file from the IFS.
How do I achieve step 3 above?

FROM WINDOWS to IBM i (INITIATED ON IBM i) Here is another process I want to achieve:
1. A process on the IBM i sends a GET HTTP request to an IIS web server to get a file and store it in the IFS.
2. A CL program uses the CPYFRMIMPF command to upload the file into a DB2/400 physical file.
3. A COBOL or RPG program then processes the DB2/400 file using business logic.
How do I achieve step 1 above?

I suspect I will be able to do the above processes with Node.JS on the IBM i. But I don't have Node.JS yet. So what other ways might I accomplish step 3 in the first process and step 1 in the second process?

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx<mailto:kcookson@xxxxxxxxxxxx>


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.