WebSphere® Service Registry and Repository (WSRR) provides a single copy of record for all service metadata. In an SOA environment the services are exchanging information in XML formats. To achieve interoperability, different services must agree on the schemas for this information exchange. The industry standard for defining the XML schema is XSD (XML Schema Definition).
In an SOA environment there are many important artifacts that use XML schemas to define the service implementation. Some of these are described here.
WSRR provides the capability to register XSD documents and to identify the important XML Schema constructs in those documents that will affect the interoperability or common dependencies between services being managed.
For each XSD document WSRR identifies:
Each of these constructs results in an object that is stored in the registry and related to the schema document that declared it. These "derived" or "logical" objects cannot be created or deleted by the user, they are managed entirely by the registering or de-registering of the XSD document that defines them.
There is a special extension of global complex types that is used to support templates. WSRR interprets certain local attributes and these can be used when creating concepts from templates as follows.
The only information available for these local attributes is the name.
The objective for all these "derived" objects is to allow the named construct to be annotated with metadata to indicate how it must be used throughout the SOA enterprise. This allows a particular construct declared in a document to be managed differently from other constructs declared in the same document. This has the implication that if any document is deleted or even updated (in terms of content), any derived objects will be deleted and the attached metadata will be lost.
In addition to this shredding of XSD documents, WSRR automatically detects and maintains dependencies between documents. At the time of loading or creation, of the dependent document, the documents that it depends on must be:
For each of these dependencies encountered and resolved, WSRR will ensure that a built-in relationship is established between the dependent document and the depended on document.
Managing services with XML schemas is described in the following subtopics: