BizTalk2006架构编辑器同类型化DataSet设计器冲突

来源:互联网 发布:个人律师网站源码 编辑:程序博客网 时间:2024/05/18 02:21

 安装BizTalk Server 2006出现BizTalk架构编辑器同类型化DataSet设计器冲突
郑佐 2006-11-1

在安装了BizTalk Server 2006后,Visual Studio 2005中原有类型化数据集设计器被屏蔽,变成了BizTalk Server 2006开发中使用的XML架构编辑器。如下图,

xml架构编辑器

 

查看xml文档内容发现xs:schema主节点属性发生了改变,

<xs:schema

    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"

    xmlns:mstns="http://tempuri.org/DecEntryResultDataSet.xsd"

    xmlns:b="http://schemas.microsoft.com/BizTalk/2003"

    xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"

    attributeFormDefault="qualified"

    elementFormDefault="qualified"

    targetNamespace="http://tempuri.org/DecEntryResultDataSet.xsd"

    id="DecEntryResultDataSet"

    xmlns:xs="http://www.w3.org/2001/XMLSchema">

使用文本编辑器打开DecEntryResultDataSet.xsd文件,显示正确内容为,

<xs:schema

    xmlns:mstns="http://tempuri.org/DecEntryResultDataSet.xsd"

xmlns="http://tempuri.org/DecEntryResultDataSet.xsd"

    xmlns:xs="http://www.w3.org/2001/XMLSchema"

    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"

    xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"

targetNamespace="http://tempuri.org/DecEntryResultDataSet.xsd"

    elementFormDefault="qualified"

    attributeFormDefault="qualified"

    id="DecEntryResultDataSet">

 

可 见在打开的时候xmlns=http://tempuri.org/DecEntryResultDataSet.xsd属性被替换成了xmlns:b= http://schemas.microsoft.com/BizTalk/2003。但改变后的元素属性不会写入xsd文件。

在Visual Studio 2005中添加xml架构文件(XSD)生成的正常根节点内容为,

<xs:schema

attributeFormDefault="unqualified"

elementFormDefault="qualified"

xmlns:xs="http://www.w3.org/2001/XMLSchema">

在VS2005中打开的时候变成为,

<xs:schema

xmlns:b="http://schemas.microsoft.com/BizTalk/2003"

attributeFormDefault="unqualified"

elementFormDefault="qualified"

xmlns:xs="http://www.w3.org/2001/XMLSchema">

 

在VS2005中进行添加强类型数据集(XSD)操作,无法显示数据集设计器,被BizTalk 架构编辑代替了。

一种处理办法是在项目的xsd文件上点击右键选择“打开方式”菜单,可以看到数据集编辑器,选中该编辑器,点击“确定”按钮就可以图形化编辑该类型化数据集。当然也可以设置默认编辑器。

 
原创粉丝点击