About the sample
WSO2 Data Services Server supports scraping and extracting Web information and exposing it as dataservices. This sample demonstrates how to extract book information using Site Point (http://www.sitepoint.com/html). The
WebResource sample service contains a single operation named
getBooksInfo, which returns a list of books and authors.
Building the sample
Deploy the sample data service named WebResourceSample, using the instructions in .
Running the sample
The sample service can be run using the tool, which comes with the Data Services Server. You can also run it using a code-generated java client. See for details.
Follow the steps below to demonstrate this functionality using the TryIt tool:
- Log in to the management console of your server and click List under Services in the navigator. The WebResourceSample will be listed here.
- Click Try this service to open the TryIt tool.
- Select the "getBooksInfo" operation and click Send to execute the operation. You will get the response as shown below.