Access the API using AS400

475 pts.
Tags:
API
AS/400
AS/400 API
AS/400 programming
CLP
RPG
URL
Hi,

I would like to send the few tracking details in to the website and to get back the details from the web. The URl has special character like < > & " .(for passing the values to the web) and more than 200 of length.

i would need  to know is there any way like using any CL/RPG/RPGLE programs and get  the output values from web again to the as400. Mainly t startin point would be from AS400 program later it can be any other langaues (if any).

Please provide me the complete details,

Thanks in advance.

[strong]Simply[/strong] : call a pgm with few shipin param, which calls web and get t data back in PGM.

 

 

 



Software/Hardware used:
as400
ASKED: January 29, 2010  1:00 PM
UPDATED: February 1, 2010  5:34 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

What you ar asking for is basically a ‘webservice’, since you do not need the data to be presented in any way in a browser.

You will need to ask the supplier if their solution has a webservice which returns tha data that you need; – if not, it cannot be done (according to my present knowledge …).

If anybody has supplemental comments on this subject, pls add them to this thread, – I believe that many of us would like to be able to ‘screen-scrabe’ data from a website..

==============================================================

The answer here may be the same as the comment to <a href=”http://itknowledgeexchange.techtarget.com/itanswers/calling-a-url-lenght-more-than-200-from-clp/”>Calling a URL length more than 200 from CLP</a>. There are freeware utilities that can help. The link for Scott Klement’s HTTPAPI service program in that thread is as good of a starting point as it’s likely to get.

If the HTTPAPI isn’t useful or if usage of it leads to specific questions, then more specific answers may be possible. As noted by DanTheDane, there is much more to this than simply supplying some sample source code.

Tom

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BigKat
    see if this will help you cURL
    7,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following