There is an example that shows how to consume a web service (which is what it sounds like you are trying to do) but there isn't a standalone document to download and read over. The comments in the sample programs are really good and you're not likely to run into many problems trying to use it.
XML is sent just like anything else you'd send over HTTP. There is a header section and a body section. You'll use the POST method and the body of the document will be XML instead of name/value pairs.
Matt
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry Kleinman
Sent: Thursday, June 26, 2008 3:21 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] UPS shipping rates with Net.Data
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?
--
As an Amazon Associate we earn from qualifying purchases.