180 pts.
 Access the API using AS400
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:
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
Last Wiki Answer Submitted:  January 29, 2010  10:46 pm  by  DanTheDane   2,540 pts.
All Answer Wiki Contributors:  DanTheDane   2,540 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

see if this will help you

cURL

 7,185 pts.