{"id":312,"date":"2011-11-09T11:45:32","date_gmt":"2011-11-09T16:45:32","guid":{"rendered":"http:\/\/www.ryanbelanger.com\/?p=312"},"modified":"2011-11-09T11:45:32","modified_gmt":"2011-11-09T16:45:32","slug":"biztalk-and-oagis-xsd-building-component_schemas","status":"publish","type":"post","link":"https:\/\/ryanbelanger.com\/?p=312","title":{"rendered":"BizTalk and OAGIS xsd &#8211; building Component_Schemas"},"content":{"rendered":"<p>I tried following<a href=\"http:\/\/www.microsoft.com\/download\/en\/details.aspx?displaylang=en&amp;id=16997\"> this procedure <\/a>to use OAGI schema in BizTalk and got a few problems so here are the solutions.<\/p>\n<p><strong>Problem #1<br \/>\n<\/strong>On build of project Component_Schemas:<\/p>\n<p>Error: <em>Node &#8220;&lt;Schema&gt;&#8221; &#8211; This schema file has a TypeName that collides with the RootNode TypeName of one of its root nodes.<\/em><\/p>\n<p><strong>Solution #1<\/strong><br \/>\nFor all errors, select the &#8220;&lt;Schema&gt;&#8221; node and change the <strong>RootNode TypeName<\/strong> property to something unique.\u00a0 What I did was to add the folder name to the\u00a0current TypeName.<\/p>\n<p><strong>Problem #2<\/strong><br \/>\nOn build of project Component_Schemas:<\/p>\n<p>Error: The type or namespace name &#8216;SerializableAttribute&#8217; does not exist in the namespace &#8216;ProjectName.System&#8217;.<br \/>\nError: The type or namespace name &#8216;NonSerializedAttribute&#8217; does not exist in the namespace &#8216;ProjectName.System&#8217;.<\/p>\n<p><strong>Solution #2<br \/>\n<\/strong>According to <a href=\"http:\/\/support.microsoft.com\/kb\/916649\">this article <\/a>on Microsoft&#8217;s website, the problem happens because some xsd files are stored is a folder named &#8220;System&#8221;. Sadly for us, OAGIS uses a folder structure with a folder named system.<\/p>\n<ol>\n<li>In Solution Explorer, expand\u00a0&#8220;System&#8221; folder.<\/li>\n<li>Click each file in the System folder and in any subfolders, and then change the namespace entry in the Properties window so that any occurrence of System becomes _System. For example, change the MyProject.System.SubFolder namespace to the MyProject._System.Subfolder namespace.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I tried following this procedure to use OAGI schema in BizTalk and got a few problems so here are the solutions. Problem #1 On build of project Component_Schemas: Error: Node &#8220;&lt;Schema&gt;&#8221; &#8211; This schema file has a TypeName that collides with the RootNode TypeName of one of its root nodes. Solution #1 For all errors, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-tips"],"_links":{"self":[{"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312"}],"version-history":[{"count":0,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions"}],"wp:attachment":[{"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ryanbelanger.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}