XML スキーマへのイベント・タイプのエクスポート
イベント・タイプから XML スキーマ・ファイルを作成することで、正しい形式でイベント・メッセージを記述することや、他のアプリケーションと共有することができます。
手順
代わりに、「ソリューション・エクスプローラー」でソリューション・プロジェクトを右クリックして、「エクスポート」をクリックすることもできます。 次に、を選択します。
タスクの結果
BOM エントリーごとに、.xsd ファイルが、指定した場所にある namespace フォルダーに作成されます。ファイル名は、BOM エントリーの名前から作成されます。
例
次の例は、ビジネス定義言語で定義されたイベントを示しています。 この airport close event は、airport エンティティーとの関係を持ちます。
an airport close event is a business event time-stamped by an event datetime (date & time).
an airport close event is related to an airport.
次の XML はイベント定義から生成されます。
<element name="AirportCloseEvent" type="m:AirportCloseEvent"/>
<complexType name="AirportCloseEvent">
<annotation>
<appinfo source="http://www.ibm.com/ia/Annotation">
<event elementName="AirportCloseEvent"/>
</appinfo>
</annotation>
<sequence>
<element name="airport" type="string">
<annotation>
<appinfo source="http://www.ibm.com/ia/Annotation">
<businessName name="airport"/>
<businessType type="sample.acmeairlines.model.Airport"/>
</appinfo>
</annotation>
</element>
<element name="eventDatetime" type="dateTime">
<annotation>
<appinfo source="http://www.ibm.com/ia/Annotation">
<timestamp/>
</appinfo>
</annotation>
</element>
</sequence>
</complexType>