Biztalk映射目标架构导入多个架构 [英] Biztalk Map Destination Schema Imports Multiple Schemas

查看:74
本文介绍了Biztalk映射目标架构导入多个架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个目标架构,可以再导入2个脚本.当架构文件与映射位于同一项目中时,我没有问题.但是,如果这些模式位于一个单独的Schemas项目中(按照良好实践),则在构建地图时会出现错误:

I have a target schema that imports 2 more scehmas. When the schema files are in the same project as the map then I have no problem. However, if the schemas are in a separate Schemas project (as per good practice) then on building the map I get the error:

*无法加载源/目标模式:xxx.BS.CardPayments.Schemas.Projx.Service1_tempuri_org.文件或类型不存在,或者如果存在项目依赖项,则不构建依赖项目.*

*Cannot load source/destination schema: xxx.BS.CardPayments.Schemas.Projx.Service1_tempuri_org. Either the file/type does not exist, or if a project dependency exists, the dependent project is not built.*

在构建地图之前,我曾尝试将架构dll复制到GAC,但这无济于事.

I have tried copying schemas dll to GAC before building map but this didn't help.

感谢您收到任何建议!

谢谢*强调文字*

Rob

推荐答案

Rob, 当您的架构与地图位于同一项目中时,地图将通过文件名引用它们.如果将地图移到另一个项目并尝试打开它,则BizTalk地图编辑器将不再找到这些文件.如果使用记事本或XML编辑器(在文件顶部附近搜索Location属性)打开地图,则可以清楚地看到这一点.

Rob, When your schemas are in the same project as your map, the map will reference them by file name. If you move the map to another project and try to open it, the BizTalk map editor won't find those files anymore. You can see this clearly if you open the map using notepad or an XML editor (search for the Location attribute near the top of the file).

解决方案是使用完全合格的.NET类型名称(即名称空间+类型名称)引用架构.在解决方案资源管理器中选择架构文件后,可以从属性窗口中获取这些值.

The solution is to reference the schemas using their fully qualified .NET type name - i.e. namespace + type name. You can get these values from the properties window when the schema file is selected in Solution Explorer.

希望很清楚,如果您需要任何澄清,请告诉我.

Hope it's clear, let me know if you require any clarification.

这篇关于Biztalk映射目标架构导入多个架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆