The loop doesn’t run normally,why?

Home Page Forums BizTalk 2004 – BizTalk 2010 The loop doesn’t run normally,why?

Viewing 1 reply thread
  • Author
    Posts
    • #13402

      You should only need to construct the message once.
      Have you tried moving the ConstructMessage shape before the loop

    • #13403

      What happens to the Xml file

      • #13404

        What happens to the Xml file after it is created. Who reads the file.

        The main problem with your orchestration is it has to be active forever. It will be initiated by receiving the trigger message and loop continuously. If the orchestration ever has an exception it will fail. You will need additional code to handle this failure and send another trigger message otherwise the process will stop. e.g. if the Oracle server is down the Web Service call will fail and the orchestration will be suspended.

        An alternative would be to have an OracleDb receive location that queries the Oracle Db every minute and receives the Xml data and saves the Xml data into a file.

        • #13405

          What is the purpose of the loop? You receive one message, why do you need to call the webservice multiple times?

          Neal Walters
          http://Biztalk-Training.com

          • #13406

            Repling to previous
            [quote:1a95afb647]Reply to Neal Walters:
            The purpose of loop is to invoke the web service every 1 minute.Once the web service is invoked,it will execute a query in an oracle data source and create a .xml file in a local folder. [/quote:1a95afb647]

            If you just want to extract data every x minutes, there probably is a much easier way.

            If you were using a Microsoft SQL adapter, you could just set up a receive port to poll ever x minutes, then use a send port to receive the ouput. No orchestration would be required. But obviously, that will not help with Oracle. Does 2006 include an Oracle adapter? Are you running 2004 or 2006?

            Neal Walters
            http://Biztalk-Training.com

            • #13407

              Hi,guys!
              In my orchestration,I try to continue reading a web service using a loop.The condition of the loop is set as true.But when I run this instance, the steps in the loop are executed just one time.
              Can anyone help me tell me why?

              I paste the picture of the orchestration as following:
              [img]http://temperary.bokee.com/inc/1.bmp [/img]

              • #13408

                Reply to greg.forsythe:
                I have tried to do as what you said.But the steps in the loop runs just one time yet.

                Reply to Neal Walters:
                The purpose of loop is to invoke the web service every 1 minute.Once the web service is invoked,it will execute a query in an oracle data source and create a .xml file in a local folder.

                Best regards!

                • #13409

                  The xml file is just created and put into a local folder.Besides,nothing happened to it.

                  • #13410

                    The problem has been solved already.
                    The way of invoking the web service is ok.
                    The another way of using oracle adapter may be better.

                    Thank you again for the help of greg.forsythe and NealWalters.

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