UDDI エンティティー定義ファイル
エンティティー定義ファイルには、UDDI ユーティリティー・ツール・スキーマに従い、指定されたそれぞれのエンティティーを正確に記述する XML が含まれています。
次の 3 つの方法で UDDI エンティティー定義ファイルを作成することができます。
- UDDI ユーティリティー・ツールのエクスポート関数またはプロモート関数を使用して、ファイルを生成する。
- エクスポート関数を使用して生成されたファイルを変更する。
- ファイルを手動で作成する。
削除された属性を追加する uddi:tModel タイプへの拡張は、現在、UDDI ユーティリティー・ツールでは使用されていません。
ファイルは以下のように形式が検証され、UDDI ユーティリティー・ツール・スキーマに準拠しているかが検証されます。
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema id="uddiPromote" attributeFormDefault="unqualified"
elementFormDefault="qualified" targetNamespace=
"http://www.ibm.com/xmlns/prod/WebSphere/UDDIUtilityTools"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:uddi="urn:uddi-org:api_v2" xmlns="http://www.ibm.com/xmlns/prod/WebSphere/UDDIUtilityTools"
xmlns:promote="http://www.ibm.com/xmlns/prod/WebSphere/UDDIUtilityTools">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd" />
<xsd:import namespace="urn:uddi-org:api_v2" schemaLocation="uddi_v2.xsd" />
<!-- define a type to represent the state of a tModel -->
<xsd:simpleType name="tModelDeleted">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="true" />
<xsd:enumeration value="false" />
</xsd:restriction>
</xsd:simpleType>
<!-- extend tModel with additional attribute of type tModelDeleted -->
<!-- This is restricted to values true or false -->
<xsd:complexType name="tModel">
<xsd:complexContent>
<xsd:extension base="uddi:tModel">
<xsd:attribute name="deleted" type="promote:tModelDeleted" use="optional" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- Top level element definitions -->
<xsd:element name="uddiEntities" type="promote:uddiEntities" />
<xsd:complexType name="uddiEntities">
<xsd:sequence>
<xsd:element ref="promote:tModels" minOccurs="0" maxOccurs="1" />
<xsd:element ref="promote:businesses" minOccurs="0" maxOccurs="1" />
<xsd:element ref="promote:services" minOccurs="0" maxOccurs="1" />
<xsd:element ref="promote:bindings" minOccurs="0" maxOccurs="1" />
<xsd:element ref="promote:referencedTModels" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="businesses" type="promote:businesses" />
<xsd:complexType name="businesses">
<xsd:sequence>
<xsd:element ref="uddi:businessEntity" minOccurs="0"
maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="tModels" type="promote:tModels" />
<xsd:complexType name="tModels">
<xsd:sequence>
<xsd:element ref="uddi:tModel" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="services" type="promote:services" />
<xsd:complexType name="services">
<xsd:sequence>
<xsd:element ref="uddi:businessService" minOccurs="0"
maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="bindings" type="promote:bindings" />
<xsd:complexType name="bindings">
<xsd:sequence>
<xsd:element ref="uddi:bindingTemplate" minOccurs="0"
maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="referencedTModels" type="promote:referencedTModels" />
<xsd:complexType name="referencedTModels">
<xsd:sequence>
<xsd:element ref="uddi:tModel" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
正規 tModel エンティティーの UDDI エンティティー定義ファイルの例
UDDI ユーティリティー・ツールを使用して、ターゲット UDDI レジストリー内に新規の UDDI エンティティーを作成することができます。この典型的な例は、公に知られている tModel キーを持つ新規の正規 tModel エンティティーの導入です。
以下のエンティティー定義ファイルの例は、5 つの主なセクション (tModels、businesses、services、bindings、および referencedTModels) を示しています。
<?xml version="1.0" encoding="UTF-8"?>
<promote:uddiEntities xmlns="urn:uddi-org:api_v2" xmlns:promote=
"http://www.ibm.com/xmlns/prod/WebSphere/UDDIUtilityTools">
<!-- tModels -->
<promote:tModels>
<tModel tModelKey="uuid:ee3966a8-faa5-416e-9772-128554343571" >
<name>http://schemas.xmlsoap.org/ws/2002/07/policytmodel</name>
<description>WS-PolicyAttachment policy expression</description>
</tModel>
<tModel tModelKey="uuid:ad61de98-4db8-31b2-a299-a2373dc97212" >
<name>uddi-org:wsdl:address</name>
<description xml:lang="en">
This tModel is used to specify the URL fact that the address must be obtained
from the WSDL deployment file.
</description>
<overviewDoc>
<overviewURL>
http://www.oasis-open.org/committees/uddi-spec/doc/tn/
uddi-spec-tc-tn-wsdl-v2.htm#Address
</overviewURL>
</overviewDoc>
</tModel>
</promote:tModels>
<!-- businesses -->
<promote:businesses>
</promote:businesses>
<!-- services -->
<promote:services>
</promote:services>
<!-- bindings -->
<promote:bindings>
</promote:bindings>
<!-- referenced tModels -->
<promote:referencedTModels>
</promote:referencedTModels>
</promote:uddiEntities>