delay next step in orchestration

Home Page Forums BizTalk 2004 – BizTalk 2010 delay next step in orchestration

Viewing 1 reply thread
  • Author
    Posts
    • #22527

      Hello all

      I have the following scenario. I have an orchestration that calls an web service that returns an xml fille that is written to disk. After that the same orchestration calls another web service that gets the file from that location and loads it into sql. The problem is that the orchestration calls the second web service before the file received is written toi disk and i get an error from the second web service. How can i delay the next step in orchestration so that the data are finished to be written to it.

      Thanks

      Best Regards

      Alex

       

    • #22528

      I have to ask the obvious question, why do you write the message to a file  and then read it back via a web service before storing it in SQL. Why not write to a file and then store the same message in SQL?

      Given there is a rational explanation for this, you need to block the orchestration on the send shape to the File send port. You can do this using delivery notification. Add a scope around the send shape and set Synchronized to true. Set Delivery Notification on the send port to Transmitted

       

      • #22530

        Hello Greg,

        Thank you for your promt answer! That was the solution for my problem serialized scope+ delevery notification on the send port.

        I use that solution because i work with untyped messages (without xsd). The response message from the webservice is an systemxml document. So i can receive messages with diferent structures in the same orchestration. In that case i think that is dificult to get data directly to sql using sql adapter because i don’t have the message xsd schema.

        I also think that another solution is to send the response message of the first web service to the request message of the second web service using the message assignment shape. In this way i will avoid the writing of the response message data to disk.

        Best Regards

        Alex

         

          

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