Call a class in an orchestration

Home Page Forums BizTalk 2004 – BizTalk 2010 Call a class in an orchestration

Viewing 1 reply thread
  • Author
    Posts
    • #15232

      Hi!!
      I%u00b4m a newbie in BizTalk, and I have I doubt…
      I have a shape in an orchestration, and I wan%u00b4t to call to a class that inserts rows in a database , and I wan%u00b4t to pass a parameter extract of the xml on the shape…
      How Can I do that?
      Thanks!

    • #15233

      Thanks for replay!!
      but how can I pass a message to a C# method as a System.Xml.XmlDocument?…
      thanks again!!

      • #15234

        Take a look at my sample on Streaming Debatching in BizTalk 2004. It passes a message. You can just receive it as type XmlDoc.

        Hope this helps.

        • #15235

          [quote:431c7f32c0]I have a shape in an orchestration, and I wan%u00b4t to call to a class that inserts rows in a database , and I wan%u00b4t to pass a parameter extract of the xml on the shape…
          How Can I do that? [/quote:431c7f32c0]

          If the method is not static, create a variable and set it’s type to .NET and choose the class. Then in an expression shape, you can say:
          [code:1:431c7f32c0] myvar = new MyNamespace.MyClass(whatever);
          myvar.MyMethod(a,b,c); [/code:1:431c7f32c0]

          If you have a static method, you can just call it directly without the variable.

          I’m not sure what you mean \”pass a parameter extract of the xml on the shape\”. You can use xpath to pull of a selection of nodes from a message, and you can pass a message to a C# method as a System.Xml.XmlDocument.

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