|
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx
[mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of
web400-request@xxxxxxxxxxxx
Sent: Thursday, June 26, 2008 5:20 PM
To: web400@xxxxxxxxxxxx
Subject: WEB400 Digest, Vol 6, Issue 213
Send WEB400 mailing list submissions to
web400@xxxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.midrange.com/mailman/listinfo/web400
or, via email, send a message with subject or body 'help' to
web400-request@xxxxxxxxxxxx
You can reach the person managing the list at
web400-owner@xxxxxxxxxxxx
When replying, please edit your Subject line so it is more
specific than "Re: Contents of WEB400 digest..."
*** NOTE: When replying to this digest message, PLEASE remove
all text unrelated to your reply and change the subject line
so it is meaningful.
Today's Topics:
1. UPS shipping rates with Net.Data (Larry Kleinman)
2. Re: UPS shipping rates with Net.Data (Haas, Matt (CL Tech Sv))
3. Re: UPS shipping rates with Net.Data (Larry Kleinman)
4. Re: UPS shipping rates with Net.Data (Haas, Matt (CL Tech Sv))
5. Re: UPS shipping rates with Net.Data (Larry Kleinman)
6. Re: UPS shipping rates with Net.Data (Walden H. Leverich)
7. Re: UPS shipping rates with Net.Data (Aaron Bartell)
----------------------------------------------------------------------
message: 1
date: Wed, 25 Jun 2008 20:21:57 -0400
from: Larry Kleinman <larry@xxxxxxxxxxxxxxxxx>
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
------------------------------
message: 2
date: Wed, 25 Jun 2008 20:37:23 -0400
from: "Haas, Matt (CL Tech Sv)" <matt.haas@xxxxxxxxxxx>
subject: Re: [WEB400] UPS shipping rates with Net.Data
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.
------------------------------
message: 3
date: Thu, 26 Jun 2008 08:58:14 -0400
from: Larry Kleinman <larry@xxxxxxxxxxxxxxxxx>
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
--
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.
--
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.
------------------------------
message: 4
date: Thu, 26 Jun 2008 09:16:12 -0400
from: "Haas, Matt (CL Tech Sv)" <matt.haas@xxxxxxxxxxx>
subject: Re: [WEB400] UPS shipping rates with Net.Data
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
------------------------------
message: 5
date: Thu, 26 Jun 2008 09:58:04 -0400
from: Larry Kleinman <larry@xxxxxxxxxxxxxxxxx>
subject: Re: [WEB400] UPS shipping rates with Net.Data
I don't think that Net.Data is an issue.....the question is
can I do it from
"ordinary" HTML. I has also thought of using PASE, but how
do I access the
PASE environemnt from the HTML running on the Apache server?
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/26/2008 09:16 Net.Data
AM
Please respond to
Web Enabling the
AS400 / iSeries
<web400@midrange.
com>
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
--
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.
------------------------------
message: 6
date: Thu, 26 Jun 2008 10:11:32 -0400
from: "Walden H. Leverich" <WaldenL@xxxxxxxxxxxxxxx>
subject: Re: [WEB400] UPS shipping rates with Net.Data
but how do I access the PASE environemnt from the HTMLrunning on the
Apache server
HTML does not run on the server. HTML is nothing more than
text. On the server you're running some sort of programming
environment that's generating HTML, in your case Net.Data
(others might use Java, CGI,
etc.) at the end of the day they all do the same thing, generate text
(HTML) that's sent down the pipe to the browser. So the
question really is one of how do you do it from Net.Data.
-Walden
--
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx
http://www.TechSoftInc.com
Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)
------------------------------
message: 7
date: Thu, 26 Jun 2008 09:19:37 -0500
from: "Aaron Bartell" <aaronbartell@xxxxxxxxx>
subject: Re: [WEB400] UPS shipping rates with Net.Data
This is something you can't technically do from
HTML/Javascript. By default, and per the spec, you can't
make a request to a different server than what the original
request came from. What you CAN do is make a request from
Net.Data while it is being run on the server and then have
the results be displayed on the page.
I do something very similar for one of my customers where
they need to make an XML request from their RPG CGI
application to a credit reporting agency.
The basic flow is as follows:
1) User clicks button in browser
2) RPG CGI program recieves in personal information
3) Compose XML request
4) send/recieve XML request/response to/from TransUnion
5) Compose HTML response and send results back to browser
<vendor>
In my case steps 3 and 4 use RPG-XML Suite (www.rpg-xml.com).
</vendor>
HTH,
Aaron Bartell
On Thu, Jun 26, 2008 at 8:58 AM, Larry Kleinman
<larry@xxxxxxxxxxxxxxxxx>
wrote:
can I do
I don't think that Net.Data is an issue.....the question is
it fromhow do I access
"ordinary" HTML. I has also thought of using PASE, but
the
PASE environemnt from the HTML running on the Apache server?
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
203-255-4100
------------------------------
--
This is the Web Enabling the AS400 / iSeries (WEB400) digest
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.
End of WEB400 Digest, Vol 6, Issue 213
**************************************
As an Amazon Associate we earn from qualifying purchases.
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.