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




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

    XLangMessage[].LoadFrom  
Andy


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


 
04-27-06 06: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 tha
t
also gave an error.

What are we doing wrong?

Thanks
Andy






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:34 PM.      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