Creating a message instance
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Creating a message instance




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Creating a message instance  
STom


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-29-05 11:06 PM

If you attempt to use a message variable within an orchestration and have
not created an instance of it, you get an error.

I know two ways to do this are:
1. If the message is like the incoming message, you can use an expression
shape and just say Msg2 = Msg1;
2. You could create a dummy transform shape that has any source schema and
the required destination schema and without creating any links within the
map, let the map create the instance. Kind of a hacked way of doing it.

But what would another method of creating an instance be? Would you create
an instance of an XMLDocument and then somehow associate it with a schema?
What would the code in the expression shape look like?

Thanks.

STom







[ Post a follow-up to this message ]



    Re: Creating a message instance  
Yves Peneveyre


Report This Message To A Moderator Edit/Delete Message


 
05-02-05 12:47 PM

Hello !

A way to do what you want is to assign your message variable in an
expression shape using a helper, like that :
msgMyMessage = aHelper.NewMessage();

And, in your helper (in C#), you could have :
public static XmlDocument NewMessage()
{
XmlDocument doc = new XmlDocument();
doc.LoadXml("<ns0:Root
xmlns:ns0=\"http://my.namespace.here\"><someTagsHere></someTagsHere></ns0:Ro
ot>");
return doc;
}

That _could_ be a way. Not the best, firstly because the XML is hard coded,
but it is an example.....

Best Regards

Yves Peneveyre


"STom" <stombiztalker@hotmail.com> wrote in message
news:OkDwGaMTFHA.3544@TK2MSFTNGP12.phx.gbl...
> If you attempt to use a message variable within an orchestration and have
> not created an instance of it, you get an error.
>
> I know two ways to do this are:
> 1. If the message is like the incoming message, you can use an expression
> shape and just say Msg2 = Msg1;
> 2. You could create a dummy transform shape that has any source schema and
> the required destination schema and without creating any links within the
> map, let the map create the instance. Kind of a hacked way of doing it.
>
> But what would another method of creating an instance be? Would you create
> an instance of an XMLDocument and then somehow associate it with a schema?
> What would the code in the expression shape look like?
>
> Thanks.
>
> STom
>
>







[ Post a follow-up to this message ]



    Re: Creating a message instance  
Emmanuel Issaly


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-01-05 12:48 PM

hi,

why isn't this working directly in the expression shape?

also, i'd like to load a schema instead of hardcoding the xml... what would
be the syntax?
i cannot i think use .net because i must conform to BPEL and target systems
could be others than .net...

thanks!

"Yves Peneveyre" wrote:

> Hello !
>
> A way to do what you want is to assign your message variable in an
> expression shape using a helper, like that :
> msgMyMessage = aHelper.NewMessage();
>
> And, in your helper (in C#), you could have :
> public static XmlDocument NewMessage()
> {
>     XmlDocument doc = new XmlDocument();
>     doc.LoadXml("<ns0:Root
> xmlns:ns0=\"http://my.namespace.here\"><someTagsHere></someTagsHere></ns0:
Ro
> ot>");
>     return doc;
> }
>
> That _could_ be a way. Not the best, firstly because the XML is hard coded
,
> but it is an example.....
>
> Best Regards
>
> Yves Peneveyre
>
>
> "STom" <stombiztalker@hotmail.com> wrote in message
> news:OkDwGaMTFHA.3544@TK2MSFTNGP12.phx.gbl... 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register