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 ]
|