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