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




Thanks, Scott. Your reply was very helpful. I do not have my heart set on
cURL - I have my heart set on doing this the easiest way possible,

Using cURL looks easy, although I have never used PASE and I don;t know what
issues may lurk there. From the net.data perspective, I can easily call a
program (RPG or CL) with parms if necessary, so maybe that might do the
trick. (Not sure how to call cURL - in PASE from CL, but I guess that can
be figured out.)

On the other hand, your HTTPAPI comes highly recommened, but, as with cURL,
I have never used it. Is there some documentation that I can read about it?
In particular, how does the send/receive XML stuff work?

Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
203-255-4100



Scott Klement
<web400@scottklem
ent.com> To
Sent by: Web Enabling the AS400 / iSeries
web400-bounces@mi <web400@xxxxxxxxxxxx>
drange.com cc

Subject
06/26/2008 01:39 Re: [WEB400] UPS shipping rates with
PM Net.Data


Please respond to
Web Enabling the
AS400 / iSeries
<web400@midrange.
com>






Hello,

The parser is not really that important, since I have a number of
ways to do that. What I am looking for is the mechanism to
send/receive XML from my HTML/Net.data code. This CURL stuff does
that, but seems to run on every OS known to man except OS/400.

The HTTPAPI tool does exactly that -- it sends/receives data using the
HTTP protocol. (It *also* has an XML parser, but that's not it's
primary purpose, and you don't have to use it if you don't want to.)

So HTTPAPI is a tool for sending bytes (it doesn't matter what format
they're in) over a network using the HTTP protocol. It's aimed at RPG
(not Net.Data) but I expect you can call RPG from Net.Data, correct?

If you don't like that -- Brad Stone also has a similar tool called
GETURI. Also designed for RPG/CL.

If you really have your heart set on cURL, it's available for i5/OS (I
have it installed!), but you have to run it in PASE. That would be a
non-issue from PHP (which also runs in PASE), though I don't know enough
about Net.Data to know if it can invoke PASE software. But if you
really want to use cURL and Net.Data can't invoke QShell or PASE, then
you could always write a CL wrapper around it, and invoke that.

Does that help?
--
This is the Web Enabling the AS400 / 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.