Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

WSO2 Data Services Server supports scraping and extracting Web information and exposing them it as data services. To demonstrate this use case, we are using Yahoo Weather Forecasts to extract weather information in this sampledataservices. To sample demonstrates how to extract book information using Site Point HTML Books (http://www.sitepoint.com/html).

Building the sample

The sample data service "WebResourceSample" should be deployed using the Deploy the sample dataservice WebResourceSample using instructions in Deploying Data Services section.

...

The sample service can be run using the TryIt tool, which is bundled comes with the WSO2 Data Services Server, or . You can also run it using a code-generated java client sample as discussed in the. See Data Services Clientssection for details. The WebResource sample service contains a single operation named "getWheatherInfo" getBooksInfo, which returns the temperatures of regions. A Shown below is a sample run of the service using the "tryit" tool is shown below  Tryit tool.

Image Removed Image Added