0

Microsoft BizTalk 2009 では、組み込みの TestableReceivePipeline クラスを使用して ReceivePipeline (フラット ファイル 逆アセンブラーを備えている) をテストしたいと考えています。単一のスキーマを使用する場合は問題なく動作しますが、インポートされたスキーマ( Schema2) 内部。なぜこのエラーが発生するのですか?

パイプラインをテストするためのコード:

        StringCollection documents = new StringCollection();
        documents.Add(@"c:\Test.dat");

        StringCollection parts = new StringCollection();

        Dictionary<string, string> schemas = new Dictionary<string, string>();
        schemas.Add("MyCompany.Schema2", @"C:\Schema2.xsd");
        schemas.Add("MyCompany.Schema1", @"C:\Schema1.xsd");

        Microsoft.BizTalk.TestTools.Pipeline.TestableReceivePipeline pipeline = new MyReceivePipeline();
        pipeline.TestPipeline(documents, parts, schemas);

Schema1.xsd ソース:

<xs:import schemaLocation=".\Schema2.xsd" namespace="http://MyCompany.Schema2" />
<xs:element name="Schema1">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="Header">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="ClientRef" type="xs:string">
                            <xs:annotation>
                                <xs:appinfo>
                                    <b:fieldInfo justification="left" sequence_number="1" wrap_char_type="default" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" />
                                </xs:appinfo>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element ref="ns1:Data" />
            <xs:element name="Tail">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="RecordCount" type="xs:int">
                            <xs:annotation>
                                <xs:appinfo>
                                    <b:fieldInfo justification="left" sequence_number="3" wrap_char_type="default" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" />
                                </xs:appinfo>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>

Schema2.xsd ソース:

<xs:element name="Data">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="FirstName" type="xs:string" nillable="true">
                <xs:annotation>
                    <xs:appinfo>
                        <b:fieldInfo justification="left" wrap_char_type="default" sequence_number="2" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" />
                    </xs:appinfo>
                </xs:annotation>
            </xs:element>
            <xs:element name="Surname" type="xs:string" nillable="true">
                <xs:annotation>
                    <xs:appinfo>
                        <b:fieldInfo justification="left" sequence_number="3" wrap_char_type="default" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" />
                    </xs:appinfo>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>

4

1 に答える 1

0

知る限り、これは現在 BizTalk 2009 ではサポートされていません。

于 2010-08-23T22:35:23.247 に答える