Home Page › Forums › BizTalk 2004 – BizTalk 2010 › The loop doesn’t run normally,why?
- This topic has 8 replies, 1 voice, and was last updated 9 years, 1 month ago by
community-content.
-
AuthorPosts
-
-
April 24, 2006 at 9:32 AM #13402
You should only need to construct the message once.
Have you tried moving the ConstructMessage shape before the loop -
April 25, 2006 at 2:30 AM #13403
What happens to the Xml file
-
April 25, 2006 at 5:24 AM #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.
-
April 24, 2006 at 6:06 PM #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-
April 25, 2006 at 10:58 PM #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-
April 24, 2006 at 9:14 AM #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]-
April 25, 2006 at 1:40 AM #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!
-
April 25, 2006 at 3:44 AM #13409
The xml file is just created and put into a local folder.Besides,nothing happened to it.
-
April 29, 2006 at 7:03 AM #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.
-
-
-
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.