The problem is Net.Data can't do that. You'll need to come up with a program that can and have Net.Data call it.
I took a look at the cURL page and if you install the SSH stuff for PASE, you'll get zlib and OpenSSL and then you can probably run this in PASE using one of the AIX version.
Matt
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry Kleinman
Sent: Thursday, June 26, 2008 8:58 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] UPS shipping rates with Net.Data
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.
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
203-255-4100
"Haas, Matt (CL
Tech Sv)"
<matt.haas@cengag To
e.com> Web Enabling the AS400 / iSeries
Sent by: <web400@xxxxxxxxxxxx>
web400-bounces@mi cc
drange.com
Subject
Re: [WEB400] UPS shipping rates with
06/25/2008 08:37 Net.Data
PM
Please respond to
Web Enabling the
AS400 / iSeries
<web400@midrange.
com>
Larry,
Take a look at Scott Klement's HTTP API service program. It has examples of
consuming web services. It also comes with an XML parser.
Matt
________________________________________
From: web400-bounces@xxxxxxxxxxxx [web400-bounces@xxxxxxxxxxxx] On Behalf Of
Larry Kleinman [larry@xxxxxxxxxxxxxxxxx]
Sent: Wednesday, June 25, 2008 8:21 PM
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] UPS shipping rates with Net.Data
I have an entire e-commerce website just about built using Net.Data and a
lot of JavaScript. All that is left to do is connect to UPS on-line tools
to get shipping rates (based on ship-to zip, shipment method, size/weight of
package, etc.). The problem is that the UPS tools are accessed via XML. I
understand the concept of XML, but I don;t know how build, parse, or
send/receive an XML document. I found a complete function to do this
written in PHP, and I know enough PHP to replicate this in Net.Data.
However, the PHP code makes use of something called cURL to parse the XML,
and it looks like you can only run cURL in LINUX, Windows, and some other
stuff. I suspect it will not work on the System i Apache server.
I am not locked into the PHP solution. In fact, I'm willing to try
anything, although I'm not enthusiastic about learning java, C, and some
other awful solutions that I've found on the internet.. Anybody have some
ideas?
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
203-255-4100
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: Data validation, mapping, and error handling, (continued)
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.