Creating an Atom category document
Create an Atom category document if you want to supply a long list of categories for a collection or to reuse the same list of categories for different collections. For short or unique lists of categories, there is little value in defining a separate category document; specify the categories in the Atom service document instead.
About this task
An Atom category document is stored in z/OS UNIX System Services. An Atom category document is an XML document, and the file has the .xml extension. You can create the file using any XML editor or text editor.
As for an Atom service document, you can choose whether to create your Atom category documents as Atom configuration files, or as files delivered by CICS Web Support static content delivery. Choose the same approach as you took for your Atom service document in Creating an Atom service document. CICS does not validate the content of an Atom category document.
Apart from the <cics:atomservice type="category"> root element, if you use it, an Atom category document in CICS uses only the standard elements defined in RFC 5023 The Atom Publishing Protocol. Consult that document if you need any further reference information.
The categories that you specify in a category document do not affect the way CICS behaves. CICS accepts client requests that specify a category that is not included in your document. For this reason, for a request where CICS handles the resource directly, do not use the fixed="yes" attribute in your <app:categories> element, which indicates that the server does not allow any other categories. If you are using a service routine to make changes to the resource, you may code your service routine to reject client requests on the basis of categories, and indicate this in your <app:categories> element.
Note that for data held in a resource, CICS supports only a single category for each Atom entry.
Procedure
Example
This Atom category document is defined as an Atom configuration file, with the root element <cics:atomservice type="category">.
<?xml version="1.0"?>
<cics:atomservice type="category"
xmlns:cics="http://www.ibm.com/xmlns/prod/cics/atom/atomservice"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app">
<app:categories>
<atom:category term="Events" />
<atom:category term="Comments" />
</app:categories>
</cics:atomservice>
What to do next
Follow the instructions in either Delivering an Atom service or category document as an Atom configuration file or Delivering an Atom service or category document as a static response to set up the resource definitions to deliver your Atom category document to web clients.