Error handling HTTP 400 in WCF-WebHttp adapter BizTalk 2013 RRS feed

  • Question

  • Hi!

    Does anyone knows how to catch HTTP errors when using WCF-WebHttp REST adapter in BizTalk 2013? I've looked into the article BizTalk Server: REST Services Error Handling, but that is for BizTalk 2010 using the WCF-Custom adapter.

    What I want is to catch the exception in an orchestration, and do some actions dependent on which HTTP error it is, i.e. HTTP 400.

    Idar H.

    Friday, April 17, 2015 10:50 AM

All replies

  • Hi Idar,

    Welcome to BizTalk forum.

    From your description above, I don't have exact same scenario like yours, this scenario exposes a BizTalk Orchestration as a RESTful webservice using WCF-WebHttp, perhaps it will be good reference for you. See:

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Angie Xu Monday, April 27, 2015 12:34 PM
    • Unmarked as answer by Idar H Tuesday, April 28, 2015 1:27 PM
    Monday, April 20, 2015 3:27 AM
  • This scenario creates an error message to the consumer of the web service, and I don't get any closer to a solution.

    When calling a GET request to a REST web service, an HTTP 400 is a valid response when the requested ID doesn't exists. In that case you need to catch the response, and act upon this. It could be an insert of a new object, or doing something else. It doesn't have to be an error. In many cases it is just fine, and influence the workflow of the orchestration.

    Idar H.

    Tuesday, April 28, 2015 1:35 PM