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 “<Schema>” – This schema file has a TypeName that collides with the RootNode TypeName of one of its root nodes.
Solution #1
For all errors, select the “<Schema>” node and change the RootNode TypeName property to something unique. What I did was to add the folder name to the current TypeName.
Problem #2
On build of project Component_Schemas:
Error: The type or namespace name ‘SerializableAttribute’ does not exist in the namespace ‘ProjectName.System’.
Error: The type or namespace name ‘NonSerializedAttribute’ does not exist in the namespace ‘ProjectName.System’.
Solution #2
According to this article on Microsoft’s website, the problem happens because some xsd files are stored is a folder named “System”. Sadly for us, OAGIS uses a folder structure with a folder named system.
- In Solution Explorer, expand “System” folder.
- 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.