System.IO.StringWriter Variable Type – cant declare variable?

Home Page Forums BizTalk 2004 – BizTalk 2010 System.IO.StringWriter Variable Type – cant declare variable?

Viewing 1 reply thread
  • Author
    Posts
    • #19131

      Hello

      I am writing an expression to change the data type of the message to String.

      I dont see the System.IO.StringWriter data type available when declaring the var in the orchestration, but it IS available through the expression window…

      How can I declare variable in the expression window? 

      any ideas?

       

       

    • #19138

      Hi JavaK,

      I just tried this and I had no issues creating the instance.  When you assign the variable, are you simply selecting the var to be a ‘.NET Class’ and then selecting the System.IO.StringWriter class?

      Just another thought, but if you need to change the message to a string, why not assign the incoming message to a System.Xml.XmlDocument and use the .InnerXml or .InnerText to get your data?  Unless, of course, you’re not wanting to use those….just wanted to offer anything to help.

      -Rich

      • #19185

         Thats exactly what I’m doing… but StringWriter is not available…any ideas on how to resolve?

         I did use the InnerXML value – this is working OK for now.

         

        Thanks for the help 

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.