× 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 Dave,
I will look into that.

Jeff Young
Sr. Programmer Analyst


On Fri, Jan 17, 2014 at 4:14 PM, Williams, David <
David.Williams@xxxxxxxxxxxxxxx> wrote:

Jeff

Scott Klement's HTTPAPIR4 and the examples are all you need - this is a
good piece of software, is robust, and helps us enormously. Follow the
install instructions to build the HTTPAPIR4 and EXPAT service programs +
unpack the example code. Then if you follow the examples you will get
there. The key to this is to start small and work up. Follow the
examples and watch what the responses are in debug. Once you get this
working, move across to what you need to actually apply it to in small
steps. Pick on the SOAP method with the smallest number of parameters
first. All the SOAP methods I've come across give some form of error
code and error message, which at least allows you to connect to the
service you are trying to use and will give you a response like - 'this
entity hasn't been registered' which at least lets you know you've
connected to a service and it's responded. So if you start with
something that voids a shipment using a tracking reference - generally
only needs the tracking ref as a parameter, even if you haven't created
the shipment in the first place it should still give you a response like
- sorry shipment not registered.

We gained experience with simple SOAP request/responses like 'Tell me
what stock you have of this item' - only requires the item code, which
lets us know whether to place an order with this supplier, and then
worked up to things like 'create shipment' (which I believe is what you
are aiming to do) with loads of parameters.

Suggest you will need to go via a proxy server to go out to the Internet
to protect your I series from miscreants in the outside world, but all
you need for this is to add a TCP/IP Host table entry via command CFGTCP
and option 10. Then make sure you do a callp http_setproxy to set the
proxy server DNS name and all will be fine and dandy.

For the XML stuff I use a file containing an XML template for the XML
needed for a particular web service and put some identifiers in the XML
to know where a data value needs to be substituted. Then for a
particular request having substituted the variable parameters in the XML
map we pass this to http_url_post_xml procedure. If you follow the
examples for the response you will see that it breaks the response into
a series of 'field' and 'fieldvalue' response pairs which allow you to
set values for internal database fields.

Hope this helps

Dave


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff Young
Sent: 17 January 2014 18:07
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Examples wanted for accessing FedEx or UPS server API's
from RPGLE

Thanks Trevor,
I have downloaded the documentation, but since I am not familiar with
creating SOAP requests, or creating the XML to send to the API and
parsing the results, I was hoping for some pointers.

I have received some very useful suggestions so far, including using
Scott Klement's HTTPAPI and some 3rd party provider and am exploring all
of them.

More suggestions are always appreciated.

Jeff Young
Sr. Programmer Analyst


On Fri, Jan 17, 2014 at 12:56 PM, Briggs, Trevor (TBriggs2) <
TBriggs2@xxxxxxxxxxx> wrote:

Jeff,

I'm looking at doing something similar with UPS and their Developer
Kit site has a lot of information and some sample code:
https://www.ups.com/upsdeveloperkit?loc=en_US.

You have to register in order to download their developer kit
information, but it's free.

Trevor Briggs
Analyst/Programmer
Lincare, Inc.
(727) 431-1246
TBriggs2@xxxxxxxxxxx

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff Young
Sent: Friday, January 17, 2014 11:59 AM
To: RPG programming on the IBM i / System i
Subject: Examples wanted for accessing FedEx or UPS server API's from
RPGLE

All,
I have a client that needs to be able (using the FedEx or UPS API's)
to send shipment information to the server and receive back rate
information.

From what I have read so far, this can be done using SOAP/XML/WSDL or
HTTP
Post over SSL.

Does anyone have some sample code that I can use as a base for adding
to my existing programs?

I have a basic understanding of XML and HTTP, but no experience in
translating XML using RPGLE.

All help or suggestions will be appreciated.

Thanks,

Jeff Young
Sr. Programmer Analyst
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx

To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.


**********************************************************************
**********************************************************************
****************************************************************
This message originates from Lincare Holdings Inc. It contains
information which may be confidential or privileged and is intended
only for the individual or entity named above.
It is prohibited for anyone else to disclose, copy, distribute or use
the contents of this message.
All personal messages express views solely of the sender, which are
not to be attributed to Lincare Holdings Inc., and may not be copied
or distributed without this disclaimer.
If you received this message in error, please notify us immediately at

MailAdmin@xxxxxxxxxxx or (800) 284-2006.

**********************************************************************
**********************************************************************
****************************************************************

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx

To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.