.net Class Library

Home Page Forums BizTalk 2004 – BizTalk 2010 .net Class Library

Viewing 1 reply thread
  • Author
    Posts
    • #15824

      Hi All,

       

      I'm newbie in BTS, and trying figure out the next scenario:

       I got xml with some data and need to insert this data to my DB, for

      this reason i can use sql adapter in biztalk, but i want to create my custom

      .net dll (Class Library ) that will perform inserts to my data base.

       

      How  i  perform this issue??

      call to dll and pass params, or maybe array of some custom class that represent data from xml

      or even to path xml, in this dll i'll parse this xml and perfrom inserts.

       

      is it possible??

       

      TNX in advance

    • #15834

      You can certainly do that. The easiest way is to create your .NET class so that the method takes an XmlDocument instance as an argument, and then you can just directly pass your BizTalk message as the argument and BizTalk will do the conversion behind the scenes. You can however also use classes that support XmlSerialization if you want as long as the class serializes to the exact same schema you got in BizTalk for your message.

      • #15835

        TNX Tomas,

        I understood what u mentioned, however do u have stuff concerning invoking or what ever .net class library  from Biztalk-2006. Or to explain in more details how to figured it out.

         

        Tahnk u

        • #15843

          There really isn't any problem, you can call it from an expression shape without issues. If the method in your .net class is static, you can call it directly. Otherwise, you need to first add a variable to your orchestration with the correct type, and then call it later on.

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