If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Assuming that you mean from RPG then there are two major (free) candidates and a number of for-fee offerings.
Google for consume rest service with SQL DB2 and you'll find many examples. If the security requirements for the service are fairly simple this works well and is available on every box with a current OS release.
The other option and one that many thousands of us use utilizes Scott Klement's HTTPAPI (http://scottklement.com/httpapi/) and if you check his web site you'll find presentations on how to use it and the download library - which includes many, many examples of how to use it.
Beyond this of course you can always use Java, Python, PHP, Node.js, etc.
It would be helpful if you told us what you are looking for.
Asking for an "example of calling a REST web service" is sort of like asking for a "book in the library". There are many thousands of them, and they are all different. As Jon pointed out, there are examples on my web site (most are under http://scottklement.com/presentations/ ) but they might not match what you want to do. (Similar to how giving you the title of one book in the library might not be very close to what you want to read about.)
Comment