Thursday, April 21, 2011

Reserved words as field names in schema

I learnt my lesson on using reserved words in schemas today. I had a canonical schema that had two root nodes – request and response. The namespace for my schema was something like http://Narayan.Blog.ProcessingInstruction so naturally, I called the request, “request” and the response “response”.

SchemaWithReservedWords

The compiler didn’t like that. I got a bunch of errors none of which made it very clear that I was using a reserved word as seen below.ReservedWordErrors

 

 

 

 

 

 

As soon as I changed the field names to “processrequest” and “processresponse” the errors went away. Lesson learnt. I’ll be looking around to see if there’s a list of reserved words published anywhere. Lesson learnt.

My very first blog post...

Hello all and welcome to my blog. This is my very first blog post. I will be using this blog to document my thoughts, experiences and ideas on BizTalk Server. I have been a BizTalk developer for the past 4 years and love the technology. This blog is a way for me to start giving back to the BizTalk community. More posts to follow. Stay tuned.