어댑터 프레임워크 구성 확장 사용 설정
BizTalk 어댑터 프레임워크에서는 몇 가지 기능을 확장하여 사용자 환경을 개선할 수 있습니다. 이러한 확장을 사용하려면 프레임워크의 스키마인 BiztalkAdapterFramework.xsd를 가져옵니다. 스키마를 가져오면 아래에 설명된 대로 장식 및 특수 형식에 액세스하고 어댑터의 구성 스키마에서 사용할 수 있습니다. 다음 코드는 스키마를 가져오는 방법을 보여 줍니다.
<?xml version="1.0" encoding="utf-8" ?><xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd"
elementFormDefault="qualified" xmlns="http://tempuri.org/XMLSchema.xsd"
xmlns:baf="BiztalkAdapterFramework.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:import namespace="BiztalkAdapterFramework.xsd" />
. . .
</xs:schema>
BizTalk 어댑터 프레임워크 확장 스키마 XSD 가져오기
어댑터 프레임워크 확장 스키마 XSD를 가져오면 요소를 편집할 때 파일 이름 팝업을 보여 주는 요소 형식으로 baf:FileName>과 같은 <장식을 사용할 수 있습니다.
추가 장식은 인터페이스에 표시되는 속성을 제어합니다. 예를 들어 baf:description> 장식은 <요소에 도움말 텍스트를 추가합니다. baf:description> 장식은 <속성 페이지의 아래쪽에 텍스트를 표시합니다. baf:browsable> 장식은 <인터페이스에서 요소를 숨깁니다. 다음 코드는 이러한 요소를 구성 스키마 내에서 어떻게 사용할 수 있는지 보여 줍니다.
<?xml version="1.0" encoding="utf-8" ?><xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd"
elementFormDefault="qualified" xmlns="http://tempuri.org/XMLSchema.xsd"
xmlns:baf="BiztalkAdapterFramework.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:import namespace="BiztalkAdapterFramework.xsd" />
<xs:element name="Send">
<xs:complexType>
<xs:sequence>
<xs:element name="directory" type="xs:string" />
<xs:annotation>
<xs:appinfo>
<baf:designer>
<baf:description>Enter the directory that will receive sent files..
</baf:description>
</baf:designer>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="fileName" type="" />
<xs:element name="sendBatchSize" type="xs:int" />
<xs:element name="fileCopyMode" type="CopyMode" />
<xs:element name="uri" type="xs:string" >
<xs:annotation>
<xs:appinfo>
<baf:designer>
<baf:browsable show="false" />
</baf:designer>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:simpleType name="CopyMode">
<xs:restriction base="xs:string">
<xs:enumeration value="Append">
<xs:annotation>
<xs:documentation>= 0</xs:documentation>
</xs:annotation>
<xs:enumeration value="Create">
<xs:annotation>
<xs:documentation>= 1</xs:documentation>
</xs:annotation>
<xs:enumeration value="CreateNew">
<xs:annotation>
<xs:documentation>= 2</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:schema>