我在BizTalk 2006的Show Promotions对话框中有一个非常奇怪的行为。它允许我推广属性字段:
但是尊重的字段被禁用:
有什么想法吗?
这是由SQL传输架构生成向导生成的XML架构:
<?xml version="1.0" encoding="utf-16" ?>
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://ExecutionPlanner.InitializeStep" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://ExecutionPlanner.InitializeStep" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>
<msbtssql:sqlScript value="exec [InitizializeStep] @ORCHESTRATION_NAME=" ", @PROVIDER_NAME=" ", @STEP_NAME=" "" xmlns:msbtssql="http://schemas.microsoft.com/BizTalk/2003" />
</xs:appinfo>
</xs:annotation>
<xs:element name="Step">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="OrchestrationID" type="OrchestrationIDType" />
<xs:element name="Message" type="MessageType" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="OrchestrationIDType">
<xs:simpleContent>
<xs:extension base="xs:string" />
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="MessageType">
<xs:simpleContent>
<xs:extension base="xs:string" />
</xs:simpleContent>
</xs:complexType>
</xs:schema>
答案 0 :(得分:1)
编辑架构以将OrchestrationID字段从Record更改为Field Element。只能区分元素和属性。
这通常需要删除现有的Record元素,然后重新创建一个具有相同名称的Element,因为Visual Studio不允许更改xml节点的类型。但是,您可以使用XML(文本)编辑器使用“打开方式...”选项打开xsd文件来解决此问题。