I’m currently teaching a “BizTalk Developer” class for my colleagues and as usual, I learned something I didn’t know before. Maybe it’s common knowledge, but it was new to me.
Specifically, I never had figured out how to turn nodes in my schema into actual “complex types” to be used elsewhere. Let’s say I start with a “TrainingBooking” schema that validates messages from folks that are requesting training rooms for course delivery.
We’ll also assume that I want to build a “room” object that other schemas may want to reuse. My “room” schema may look like this …
Now I can import this “room” schema into my “booking” schema and reuse the defined types.
However, the only “types” available from that schema when looking at the Data Structure Type in my “booking” schema is the root type. What if I want the “room details” node from my schema instead?
What I just learned, was that if I go to my “room” schema, click my “room details” record node, and type in a value for the DataStructureType, then automagically, a “type” is created for me (see here for more details on creating global definitions).
Sweet. Now if I go back to my “booking” schema, the new “RoomDetailsType” is accessible.
I’ve had a lot of cases the past few months where I would have liked “real” complex types created, and now I know how. Learning is half the battle.
Technorati Tags: BizTalk
I love a lot of aspects of the BizTalk Schema editor, one of them being the extremely useful tree visualization of the model (particularly good for those nasty, long standard schemas). I knew about this trick, and, like you, I sort of discovered it accidentaly; it is really not very intuitive, particularly if you’re used to writing schemas by hand 🙂
Nice, thanks for sharing this!
Just when I thought all hope was lost trying to create a complex type in my schemas you come save the day with this excellent post.
Thanks Richard, you saved me a valuable Sunday hour!
And here I was, tired of exploring the properties window and context menus trying to create named comples types. Thanks a lot for the post..