Hi,
I did not find any specific solution to handle Restful exceptions in Biztalk 2013 and using WCF-WebHttp to consume service.
Can anyone suggest me how to handle exceptions in the orchestration?
- Edited by Narasaiah 22 hours 8 minutes ago
Technology Tips and News
Hi,
I did not find any specific solution to handle Restful exceptions in Biztalk 2013 and using WCF-WebHttp to consume service.
Can anyone suggest me how to handle exceptions in the orchestration?
Hi,
Hope below TechNet Wiki helps for capturing error in rest service .
Thanks
Abhishek
Hi,
Yes, XlangSoapException behavior is same with BizTalk 2010 and BizTalk 2013 . You can apply similar behaviour to capture protocol exception inside your Orchestration .
Thanks
Abhishek
Thanks Abhishek for your quick response.
Is this "WebRequestInterceptor" need to be applied under WCF-webHttp Behavior tab.
Sorry I am not sure can you please suggest me?
It's important to point out that there is nothing special about "RESTful" exceptions. You can handle them just like any other Exception type using a Catch Block in a Scope.
The steps in the above article merely surface the specific protocol error.
Yes , I do agree with Boatseller . You can capture your Exception by having a try -catch block and defining the exception message type .
Now as your question points to capturing protocol exception(how to catch HTTP 400) you can use the link mentioned above .
Thanks
Abhishek
Yes, I want to capture protocol exception and exception message. I will try above suggestions and will get back if i have any issues.
Well, the protocol exception wasn't part of the original question and in practice, is only marginally useful.
I would get the exception handling working first, then worry about such specifics.