Geeks With Blogs
ErwinAI - Enterprise Application Integration (EAI) blog on BizTalk 2004, Visual Studio, and application integration

When consuming webservices in BizTalk, you often need to pass an XML message as a string argument to the webservice's method.

This is how you do this:

  • Using mappings, XSLT or whatever, create the target message targetMsg that you need to send as a string argument
  • Define a variable xmlDoc of type System.Xml.XmlDocument in your orchestration
  • In an assign shape, write:
    • xmlDoc = targetMsg;
  • After this statement, the contents of targetMsg are available as string. Use xmlDoc.OuterXml for this (in XLANG/s in the the assign shape)

Thanks to various blog resources on the web.

 

Posted on Wednesday, April 5, 2006 12:25 PM BizTalk 2004 Hints, Tips & Tricks | Back to top


Comments on this post: BizTalk 2004 - How to assign XML message contents to a string variable

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Erwin Homan | Powered by: GeeksWithBlogs.net