XML 스키마로 이벤트 유형 내보내기

이벤트 유형에서 XML 스키마 파일을 작성하여 올바른 형식으로 이벤트 메시지를 작성하거나, 다른 애플리케이션과 공유하십시오.

프로시저

  1. 솔루션 프로젝트의 솔루션 맵에서 XSD에 이벤트 유형 내보내기를 클릭하십시오.

또는 솔루션 탐색기에서 솔루션 프로젝트를 마우스 오른쪽 단추로 클릭하고 내보내기를 클릭하십시오. 그런 다음 Insight Designer > XML 스키마로 이벤트 유형을 클릭하십시오.

  1. 솔루션 프로젝트가 선택되었는지 확인하고 찾아보기를 클릭하여 .xsd 파일이 작성될 위치를 지정하십시오.

    기본적으로는 .xsd 파일을 솔루션 프로젝트 아래의 schemas 폴더로 내보냅니다.

  2. 완료를 클릭하십시오.

결과

지정한 위치의 namespace 폴더에 각 BOM 항목에 대한 .xsd 파일이 작성됩니다. 파일 이름은 BOM 항목의 이름에서 작성됩니다.

예

다음 예는 비즈니스 정의 언어로 정의된 이벤트를 보여줍니다. 이 공항 닫힘 이벤트에는 공항 엔티티에 대한 관계가 있습니다.

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>

다음에 수행할 작업

이 스키마에서 XML 메시지를 작성할 수 있습니다. 또는 이 스키마를 기타 애플리케이션(예: IBM® Integration Bus 및 WebSphere® Message Broker)과 공유할 수 있습니다.