BizTalk Server Orchestration - Construct Message

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > February 2005 > Construct Message





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 Construct Message
Raj

2005-02-09, 2:47 am

Hi,
How do I pass variables to the construct method?
For.e.g if i wanna construct a message by name InMsg, I can build an
expression as below
construct Inmsg
{
}
but how do I pass a variable to the construct?
Thanks
Raj
Chad

2005-02-09, 5:49 pm

If I am understanding your questions, you need to make values
accessible by promoting the values in your defined schema. I believe
only promoted values are accessible in your orchestration.

Raj

2005-02-09, 5:49 pm

Thanks for the response,Chad
I didnt quite explain clearly what I needed in my previous message.
I have declared a variable (System.String) and I need that variable to be
passed to my construct statement in expression shape instead of hardcoding
Construct <MessageName>.By that way I can dynamically create different
messages without using decide shape & construct shapes and I will obtain the
same behavior just by using one expression shape!
Hope it makes sense
Raj



"Chad" wrote:

> If I am understanding your questions, you need to make values
> accessible by promoting the values in your defined schema. I believe
> only promoted values are accessible in your orchestration.
>
>

Dejan Petkovic

2005-02-14, 7:50 am

As far as I know you can't do it on this way. For the matter of the fact you
can't pass anything to the Transformation as well. Creating a message is
very tricky part in BT as far as I experienced.

Regards
Dejan
"Raj" <Raj@discussions.microsoft.com> wrote in message
news:72296E65-2E2C-4F94-A00B-A4504CD57ACE@microsoft.com...
> Thanks for the response,Chad
> I didnt quite explain clearly what I needed in my previous message.
> I have declared a variable (System.String) and I need that variable to be
> passed to my construct statement in expression shape instead of hardcoding
> Construct <MessageName>.By that way I can dynamically create different
> messages without using decide shape & construct shapes and I will obtain

the[vbcol=seagreen]
> same behavior just by using one expression shape!
> Hope it makes sense
> Raj
>
>
>
> "Chad" wrote:
>


AnthonyO

2005-02-14, 5:50 pm

You need to create a .Net class if you intend to do what you just explained.
You can instantiate your .Net class within a construct shape. You an pass
arguments to your .Net class, and you can return various message types from
your .Net class based on the string argument you passed into your class.
This is a bit complex but I hope this will resolve the issue

Anthony O.


"Dejan Petkovic" <pdeki.remove.me.jos.jednom@saga.co.yu> wrote in message
news:Oo9kRuoEFHA.1932@TK2MSFTNGP14.phx.gbl...
> As far as I know you can't do it on this way. For the matter of the fact

you
> can't pass anything to the Transformation as well. Creating a message is
> very tricky part in BT as far as I experienced.
>
> Regards
> Dejan
> "Raj" <Raj@discussions.microsoft.com> wrote in message
> news:72296E65-2E2C-4F94-A00B-A4504CD57ACE@microsoft.com...
be[vbcol=seagreen]
hardcoding[vbcol=seagreen]
obtain[vbcol=seagreen]
> the
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com