BizTalk Server Orchestration - How to create a new empty message from a schema?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > April 2004 > How to create a new empty message from a schema?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to create a new empty message from a schema?
G. Tarazi

2004-04-14, 5:44 pm

Hello

I have a message based on and xml schema, I would like to instance the message in the orchestration in the assign shape, I would like to create a new message (empty), what should I do, what are the commands to use? I am having a problems with the "new" command.

G. Tarazi

2004-04-15, 1:05 pm

Came on, this must be the easiest question ever!

In C# if you would like to instance an object is simply
Object a = new object a();

In BizTalk, I am trying to do that in the message assignment, and it does not work.

Actually, of course it must not work, instancing an object is so complicated, that even BizTalk can't do it, there are even no samples in the SDK (or I can't find one) that does that!

"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:%23nvQfSmIEHA.3832@TK2MSFTNGP12.phx.gbl...
Hello

I have a message based on and xml schema, I would like to instance the message in the orchestration in the assign shape, I would like to create a new message (empty), what should I do, what are the commands to use? I am having a problems with the "new" command.

Matt Milner

2004-04-15, 7:44 pm

Create a variable of type xmldom in the orchestration

set this to a new instance of an xmldom in your assign shape.

Load some xml into the dom that matches your schema (essentially, whatever xml you want in your new "empty" schema).

Assign the xmldom to the message you have said you are constructing.

Done.


You can also get a dom from a .net class if you want to have some reusable code that creates that emtpy xml for you.

Keep in mind that when using the xmldom, it has to be within an atomic scope because it is no serializable. for more detail on that, search the group for related posts about serializable errors.

Matt


"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:eAiZQhwIEHA.4052@TK2MSFTNGP12.phx.gbl...
Came on, this must be the easiest question ever!

In C# if you would like to instance an object is simply
Object a = new object a();

In BizTalk, I am trying to do that in the message assignment, and it does not work.

Actually, of course it must not work, instancing an object is so complicated, that even BizTalk can't do it, there are even no samples in the SDK (or I can't find one) that does that!

"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:%23nvQfSmIEHA.3832@TK2MSFTNGP12.phx.gbl...
Hello

I have a message based on and xml schema, I would like to instance the message in the orchestration in the assign shape, I would like to create a new message (empty), what should I do, what are the commands to use? I am having a problems with the "new" command.

Vikas Nahata [MSFT]

2004-04-26, 2:35 pm

You can use variable of type System.Xml.XmlDocument to load an xml instance
and then assign that to the message. System.XML.XmlDocument is special
cased specially for this kind of usage and you do need the atomic scope in
this case even though it is not XML Serializable.

| >>
| >>Create a variable of type xmldom in the orchestration
| >>set this to a new instance of an xmldom in your assign shape.
| >>Load some xml into the dom that matches your schema (essentially,
whatever xml you want in your new "empty" schema).
| >>Assign the xmldom to the message you have said you are constructing.
| >>Done.
| >>You can also get a dom from a .net class if you want to have some
reusable code that creates that emtpy xml for you.
| >>Keep in mind that when using the xmldom, it has to be within an atomic
scope because it is no serializable. for more detail on that, search the
group for related posts about serializable errors.
| >>Matt
| >> "G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message
news:eAiZQhwIEHA.4052@TK2MSFTNGP12.phx.gbl...
| >> Came on, this must be the easiest question ever!
| >> In C# if you would like to instance an object is simply
| >> Object a = new object a();
| >> In BizTalk, I am trying to do that in the message assignment, and it
does not work.
| >> Actually, of course it must not work, instancing an object is so
complicated, that even BizTalk can't do it, there are even no samples in
the SDK (or I can't find one) that does that!
| >> "G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message
news:%23nvQfSmIEHA.3832@TK2MSFTNGP12.phx.gbl...
| >> Hello
| >> I have a message based on and xml schema, I would like to instance
the message in the orchestration in the assign shape, I would like to
create a new message (empty), what should I do, what are the commands to
use? I am having a problems with the "new" command.
| >>

This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com