Are you going to create new schema (.xsd file) from existing one? Here is the quick tip for BizTalk beginners.

Posted at: 5/15/2007 at 6:59 PM by saravana

Step #1: Within Visual Studio copy the schema (.xsd file) and Paste it. Rename the file to appropriate name.

Step #2: Click on the <Schema> node and change the "Target Namespace" property in the properties window as shown below. (NOTE: This step is required only if you want to change the target namespace, else you can ignore and go to Step #3)

Step #3: Click on the Root node and change "Node Name" property in the properties window as shown below. Changing the "Node Name" property will automatically change "RootNode TypeName". Make sure they are the same.

Step #4: Click on the .xsd file in the solution explorer and click F4 (or make sure the properties window is visible, when you select the .xsd file). Set Appropriate name (usually the root node of your schema) to the "Type Name" as shown in the below figure. This is crucial, since all the schemas contained inside the project will be compiled into typed objects, derived from corresponding BizTalk artifact classes. (Example: If you look at the compiled "dll" of this sample project,  using Reflector, the class definition will be public sealed class PO_Target : SchemaBase).

That's all, your new schema is ready to be used now. Apart from all the properties windows we have seen there is one more property window for the schemas (can be seen by right clicking on the .xsd file and selecting "Properties" from the context menu) as shown in the below figure

You configure things like "Output Instance filename" which will be used when you generate a sample file from schema, "Input Instance file" which will be used when you want to validate a message against a schema etc.

Nandri!

Saravana 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: |  Categories: BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(0) | Comments RSS

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading