The wimschema.xsd file

The wimschema.xsd file contains the XML Schema definition of the property and entity schema.

These schema definitions are used when creating new property types and entity types at run time. For example, the propertySchema data object is used for specifying the information needed for creating a new property type like propertyName, dataType, or applicableEntityTypeNames. The data object entitySchema contains information like entityName, parentEntityName, and propertyNames, which are needed when creating a new entity type.

The wimschema.xsd file is also used for defining the XML schema for the wimxmlextension.xml file. This file is used by virtual member manager to store new property and entity types created at run time.

The following shows an example of the structure of the file:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" 
            xmlns="http://www.ibm.com/websphere/wim" 
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            ecore:nsPrefix="wim" 
            ecore:package="com.ibm.websphere.wim.model" 
            targetNamespace="http://www.ibm.com/websphere/wim" 
            version="1.0" elementFormDefault="qualified" 
            attributeFormDefault="unqualified">
	<xsd:element name="schema" type="SchemaType"/>
	
	<xsd:complexType name="SchemaType">
		<xsd:sequence>
			<xsd:element name="entitySchema" type="EntitySchemaType" 
                    minOccurs="0" maxOccurs="unbounded" />
			<xsd:element name="propertySchema" type="PropertySchemaType" 
                    minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="extensionPropertySchema" type="PropertySchemaType" 
                    minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="propertyDataTypes" type="xsd:token" 
                    minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>


. . .
</xsd:schema>
Note: The propertySchema data object is used to create a new property type and add it to an existing virtual member manager entity type at runtime. The new property is added to the wimxmlextension.xml file. However, if you also want to extend the database schema of the property extension repository, you must use the extensionPropertySchema data object. This will add the new property to the existing entity type in wimxmlextension.xml file as well as store the property in the property extension database. The property extension repository must be configured before you can use extensionPropertySchema. For more information, read about Configuring a property extension repository in a federated repository configuration in the WebSphere Application Server information center.
Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM virtual member manager 6.1