开发者

Biztalk Map Destination Schema Imports Multiple Schemas

开发者 https://www.devze.com 2023-03-12 11:25 出处:网络
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 g

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:

*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.*

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

开发者_如何学JAVA

Any suggestions gratefully received!

Thanks*emphasized text*

Rob


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).

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消