| fullflavedave 2006-06-21, 1:17 pm |
| I did solve my problem, but I'm using BT 2006, so I'm not sure how it would
work for you. Here is what I did for my case, where ExecuteResult was a
field that was a string containing entirely xml that I needed the system to
recognize as xml so I could use it in a map:
1. In the Orchestration View window, I created a new variable (tempXmlDoc)
of type System.Xml.XmlDocument
2. I dragged a message assignment shape to the orchestration.
3. In the message assignment shape, enter this code:
tempXmlDoc.LoadXml("<ExecuteResponse><ExecuteResult>" +
OnyxOrgRegResponseMessage.ExecuteResult +
"</ExecuteResult></ExecuteResponse>");
System.Diagnostics.EventLog.WriteEntry("OrgReg
Debug",System.String.Format("newXmlDoc1 = {0}", newXmlDoc.OuterXml));
//this is just for debugging
OnyxExpandedResponse = tempXmlDoc;
Hope that helps!
Dave
"Roman" wrote:
[vbcol=seagreen]
> Hi Harish,
>
> I have a similar situation in my BT 2004 orchestration; I need to construct
> a message and assigne some values it its distinqushed fields. Could you give
> us a specific code example of how to set the new xmldom based to an empty
> shell of an xml message with a loadxml statement and hot to set it to the
> message I want. I you could just fill up the second code segment from the
> original message.
>
> Thanks,
> Roman
>
> "Harish" wrote:
>
|