Book Image

Oracle APEX Cookbook : Second Edition

Book Image

Oracle APEX Cookbook : Second Edition

Overview of this book

Table of Contents (21 chapters)
Oracle APEX Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a REST web service reference


A Representational State Transfer (REST) web service service is another kind of web service standard. REST does not necessarily use WSDL or SOAP messaging, but can be called directly by using methods like POST and GET and other HTTP operations. So we can call a REST service directly from a URL unlike SOAP. This makes testing a lot easier.

APEX developers can use REST web services and the wizard interface offers many possibilities for creating the call.

In this recipe, we are going to use the opportunities that APEX offers us to create a page based on a public REST web service; the popular photo application Flickr.

Getting ready

Before starting this tutorial, create a Flickr account at http://www.flickr.com and request an API key.

How to do it...

  1. Go to Shared Components and click on Web Service References.

  2. Click on the Create button.

  3. Select the radio button next to REST and press Next.

    In the Name field, enter Flickr REST service.

  4. In the URL field, enter http:...