BizTalk Server Orchestration - how to create a message using XLANGS expression editor

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > July 2005 > how to create a message using XLANGS expression editor





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 message using XLANGS expression editor
overhead

2005-07-13, 6:00 pm

mates,
i've solved all my setup and configuration probs, and now i'm lost
into expression language used for expression into orchestrations.
my prob now is:
how to put a value to the typed attributes of my message.
i'm explain better: i've an orchestration starting with a
createmessage shape. into the expression editor i need to define my
message attributes.
for example i suppose to use a message containing an order and order's
attributes are: insertdate, id, description, and so on.
i've correctly set the creation shape constructed message putting the
message format i want to obtain out of the construction message
shape.
i need to write some code like this:

myorder.id=22
myorder.insertdate="2005/07/13"
myorder.description="description item testing"

howto do using xlang?
i need to use a typed class like the xsd.exe tool produced ones and
then add this class to my biztalk project?

i hope someone can help me with this damned xlangs.
OH

Michel Prévost

2005-07-13, 6:00 pm

On thing you could do, in a Message Assignment shape.

XmlBuffer.LoadXml("<myorder
xmlns='http://....'><id>22</id>.....</myorder>");
myorder = XmlBuffer;

The XmlBuffer being a variable within you orchestration. The other way would
be to have a custom .NET class that builds the message, but it would more
complex to implement.

"overhead" <fregnene@yahoo-dot-com.no-spam.invalid> wrote in message
news:7PednTtT05NsokjfRVn_vg@giganews.com...
> mates,
> i've solved all my setup and configuration probs, and now i'm lost
> into expression language used for expression into orchestrations.
> my prob now is:
> how to put a value to the typed attributes of my message.
> i'm explain better: i've an orchestration starting with a
> createmessage shape. into the expression editor i need to define my
> message attributes.
> for example i suppose to use a message containing an order and order's
> attributes are: insertdate, id, description, and so on.
> i've correctly set the creation shape constructed message putting the
> message format i want to obtain out of the construction message
> shape.
> i need to write some code like this:
>
> myorder.id=22
> myorder.insertdate="2005/07/13"
> myorder.description="description item testing"
>
> howto do using xlang?
> i need to use a typed class like the xsd.exe tool produced ones and
> then add this class to my biztalk project?
>
> i hope someone can help me with this damned xlangs.
> OH
>



Emmanuel Issaly

2005-07-18, 2:51 am

Bonjour ;)

overhead, you can test this by right clicking on the xsd and generate an
instance. Paste the contents after the LoadXML(@" in the expression editor.
also using transforms apparently properly instanciate the message structure
for you, you need to load the xml only in case of an expression shape.

Michel, that works well and should be compatible with BPEL, but with that
code you hard code the schema.
is there a way to instanciate the xml structure from a xsd declaration?
without using .net, i must conform to strict BPEL compat

Emmanuel.


"Michel Prévost" <michel.prevost_TAKEOUTTHISPART@cactuscommerce.com> a écrit
dans le message de news: %23sIn1R9hFHA.320@TK2MSFTNGP09.phx.gbl...
> On thing you could do, in a Message Assignment shape.
>
> XmlBuffer.LoadXml("<myorder
> xmlns='http://....'><id>22</id>.....</myorder>");
> myorder = XmlBuffer;
>
> The XmlBuffer being a variable within you orchestration. The other way
> would be to have a custom .NET class that builds the message, but it would
> more complex to implement.
>
> "overhead" <fregnene@yahoo-dot-com.no-spam.invalid> wrote in message
> news:7PednTtT05NsokjfRVn_vg@giganews.com...
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com