BizTalk Server Orchestration - XLangMessage.LoadFrom

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > April 2006 > XLangMessage.LoadFrom





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 XLangMessage.LoadFrom
Andy

2006-04-27, 1:21 pm

I have an orchestration that we need to call out to a custom assembly and
manipulate the data, and return that data (this is not the final product,
just want to verify we can return the proper value).

public XLANGMessage CleanXML (XLANGMessage inputFile)
{
XmlDocument xDoc = new XmlDocument();
XLANGMessage outputFile;
xDoc = (System.Xml.XmlDocument) inputFile[0].RetrieveAs(xDoc.GetType());
MemoryStream ms = new MemoryStream();
StreamReader sr = new StreamReader(ms);
ms.Seek(0, SeekOrigin.Begin);
string xml = sr.ReadToEnd();
outputFile[0].LoadFrom(xml);
return outputFile;
}

I keep getting an error stating "Use of unassigned local variable
'outputFile'. I tried to create the 'outputFile' using = new ....., but that
also gave an error.

What are we doing wrong?

Thanks
Andy

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com