× 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.



Hi Rob,

I think you're asking about downloading the XML document to your i, right?

If you, you might try HTTPAPI, which is an open source service program (from yours truly) that lets you make HTTP calls from RPG. You'd code something like this:

rc = http_url_get('http://customerdomain.com/+
directory1/directorya/vendorId.xml'
: '/ifsdir/myfile.xml');
if rc <> 1;
errorMsg = http_error();
// display error message to user
endif;

The call to the http_url_get() subprocedure tells HTTPAPI to download the XML file to the /ifsdir/myfile.xml file in your IFS.

Is that what you're asking?

Java and PHP also have a built-in capability to download a URL. There's also a program named 'wget' that you can run in PASE that will do it. Brad Stone has a commercial app called GETURI that will do it. So lots of alternatives.

But, my own HTTPAPI (demonstrated above) is the one I'd recommend. It's free, native code, and designed for RPG.
http://www.scottklement.com/httpapi/

rob@xxxxxxxxx wrote:
Customer says "go to http://customerdomain.com/directory1/directorya/vendorId.xml and copy and paste that onto your system"

No sign on required, etc. Can't get there with ftp. I'd rather automate this than to have some lackey copy and paste that.

How do I get to that directly from the i?

Rob Berendt


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.