Error handling HTTP 400 in WCF-WebHttp adapter BizTalk 2013

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.

April 17th, 2015 6:54am

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: http://blog.tallan.com/2014/09/29/wcf-webhttp-and-custom-json-error-messages/

Free Windows Admin Tool Kit Click here and download it now
April 19th, 2015 11:30pm

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.


April 28th, 2015 9:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics