Accessing the installed Feed Samples

Use this topic to access the installed feed samples for Atom and RSS feeds and the Atom Publishing Protocol (APP) service.

Samples for Atom and RSS feeds
The Atom and RSS feeds are available at the following default URLs: http://servername:port/contextroot/rest/atom and http://servername:port/contextroot/rest/rss respectively. An example URL is http://localhost:9080/SampleFeedApp_Wink/rest/atom. Use the following options to test the support to read and write RSS and Atom content. Important: The default port for WebSphere® Application Server Community Edition 2.x is 8080.
Samples for Atom Publishing Protocol (APP)
The APP service is available at the URL, http://localhost:9080/SampleFeedApp_Wink/rest/app. The APP samples require HTTP operations to work with the feed entries; for example: There are two options to perform these operations on the feed, and view the results: The cURL options to work with the APP sample are listed below. To perform a create (POST) or an update(PUT) entry operation, the entry content is passed using an entry.xml document. The content of this document is shown in the following example:
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom">
	<id>eclifox</id>
	<title type="text">Eclipse on the browser</title>
	<author>
		<name>IBM User 1</name>
	</author>
	<updated>2007-10-16T18:05:46.469Z</updated>
	<summary type="text">An Eclipse plug-in that enables browser-based access to Eclipse.</summary>
</entry>
The entry.xml file contains a new entry definition with the basic entry ID, title, author, and summary.

Important: Before you run cURL or view the samples in the browser complete the following actions:

Now, you are ready to run the cURL commands. Alternately, you can also run the GET operations by opening the URL in a browser. These are explained for every GET command.
  1. Retrieve the APP service document using:
  2. Retrieve the entire feed, using GET:
  3. Retrieve a specific feed entry, using GET:
  4. Create an entry, using POST:
  5. Update a specific entry, using PUT:
  6. Remove an entry, using DELETE:
Important: The host name, servlet port and context root are documented as 'localhost', '9080' and 'SampleFeedApp_Wink'. This might vary according to the server configuration.

Troubleshooting

PUT and DELETE methods do not work
Certain feeds are not being read by the Wink libraries
Current Java 2 Security policy reported a potential violation of Java 2 Security Permission