I’m new to BizTalk (2010). I have created a very simple BizTalk schema project with a scheam. The root record name of the schema is “Customer” which has couple of child filed elements (Name & Age). I have a .NET project where I’m referencing the above BizTalk schema. This is how I initialize the schema object:
TestSchema.Customer request = new TestSchema.Customer();
For reasons, I don’t have visibility to any of the child filed elements available in the schema. For example, I’m expecting request.age & request.Name to work fine. But it’s giving compile time exception.
Here is my schema code:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://TestSchema.Customer"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
targetNamespace="http://TestSchema.Customer"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Root">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Am I doing anything wrong here? Please advice.