Need help in BizTalk

Home Page Forums BizTalk 2004 – BizTalk 2010 Need help in BizTalk

Viewing 1 reply thread
  • Author
    Posts
    • #17265

      Hi,

      I have few queries regarding BizTalk.

      1. Is there any way to call C++ or COM dll from BizTalk Orchestation.
         If so, please let me know the process.

      2. Is there any way to log (writing into text file) the messages which are coming or going out
         of BizTalk. Please let me know the process.

      3. Is there any process to load XML once when BizTalk application
         starts so that all the orchestrations which are defined in that
         application can access the same XML?

      Please help me in this regard.

      Thanks a lot.

      Regards,
      Sasidhar

    • #17267

      Sasidhar,

      calling a COM component from BizTalk is just the same as calling it from any .NET assembly. That is you need to generate a wrapper, called a run-time callable wrapper or RCW. Search MSDN or Google for more details. Then you can just use the normal expression shape in the orchestration to call out. Of course you'll need to create a variable of the type in your C++ component in the orchestration variables.

      To log messages just turn on message tracing. Or of course you can log directly to the event log from an expression shape.

      For 3, I think you already had my reply in another list.

      John D.

      • #17278

        John,

        Thanks for your response. For my 2nd query mentioned above, if I want to see the input message which is coming from external to BizTalk, can I check the same in HAT? Does HAT tool displays the total message?

        I suppose it is very difficult to trace the error when it is written into Event viewer for a particular mesasge. So, is there any possibility to create a log file which is a text file and write the message into that?

        Please clarify.

        Sasidhar 

         

         

        • #17280

          Sasidhar,

          if you are using BTS 2006, once you turn on message tracing, you can drill down to the message with the admin tool. Nice.

          If 2004, then it's much less transparent, but if you turn on tracing you can eventually get to the message body using the HAT tool. If I remember correctly, you get the option in HAT to save the message, and it saves two files, one of which is the body.

          John D.

          • #17284

            John,

            Thanks a lot for your response.

            Still I am in confusion in logging the message into the text file.

            Suppose if I receive an XML file from an external to BizTalk, by using the HAT tool we can check whether that message has been logged in or not. if I am converting that XML file to a Flat File then before sending that flat file to external I want to log the message by creating a text file in some folder. Is it possible to create a text file and write the message by using Orchestration?

            Please clarify.

            • #17286

              Sasi,

              probably I didn't explain clearly. There are three options: (1) you do the logging, (2) let BizTalk trace the message, (3) output a message.

              For (1) you are right – it will be in XML form when you get your hands on it in the orchestration.

              For (2), what message format is traced, depends on where you switch tracing on. If it's the receive location, it will be before the pipeline and it will be in native format.

              For (3), you can create a port on the orchestration and output the message. In the orchestration you will have an XML message, but in the send port you could convert it back into a flat-file. You would need to create a flat-file-send-pipeline with the same flat-file schema in it that you use to convert the incoming file.

              John D.

            • #17293

              The quick way to log your message is to send it out a static one-way port to a Folder configured in a send port.  I use an "archive" folder, and while building and debugging at particular points in the Orchestration, I write out messages to that folder so as not to confuse them with the normal process.  You just need a send shape and a one-way static port, and configure the message and message type.

              Does this help?

              • #17298

                Biz/John,

                I understand the concept. Yes, definitely it is helpful. Thanks!!!

                Regards,

                Sasidhar 

                 

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