Listen shape

Viewing 2 reply threads
  • Author
    Posts
    • #14636

      Hi,

      i started my orchestration with a listen shape. this is to know if BizTalk receives a message. but he won’t do this because he cannot hava an activatable receive in a listen shape.

      i thought a little bit and said that is not needed because if he won’t receive anything the orchestration wouldn’t start…

      so i deleted that listen shape.
      next i have a 2way send and receive port to my webservice.
      now i made a send shape that sends a message to this webservice and in a listen shape i received the answer. but then when i deploy he says this error:
      \”incomplete requestresponse operation; missing ‘receive’\”

      how do i solve this?

      thx for answer
      Thomas

    • #14635

      In your scenario you are calling a web service and receiving a result. This is a synchronous operation and you cannot use a listen shape. A synchronous operation will always complete either successfully or by throwing an exception.
      You need to use just a receive shape. You can also use a scope shape and catch any exceptions from this synchronous operation.

      The listen shape can be used for asynchronous operations, where you send a message and at some time in the future you expect a response. e.g. sending a flat file to a legacy system. A resulting flat file will be returned when a scheduled job processes the first file. This operation could take minutes, hours or even days. You can use a listen shape with a receive and delay so if a response is not returned within a certain time the orchestration can take some action – i.e. send an error message

    • #22548

      I have am calling a web service via a synchronous operation.

       

      If the calling web service dies or throws an exception on its end than the orchestration just keeps running and remains active forever.

      How do I force a timeout on that operation if the response is never received?

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