Reputation: 55
I am creating a Biztalk dynamic port WCF-WebHttp.
When I get a response back in the form of a HTTP 404, the port suspends the following error is shown
System.Net.WebException: There was no endpoint listening at https://test.xxx.com/xxxx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. {"type":"availability.not_found","message":"No availability was found for the properties requested."}
I have tried to add an exception handler to the BizTalk orchestration. It handles the error but I still see a suspended instance.
I wish to handle the 404 error and to stop the port from suspending.
Upvotes: 2
Views: 1230
Reputation: 11040
There's a few things you have to setup around this for it to work 'as expected'.
This article: BizTalk Server: Suspend and Resume an Orchestration on Two Way Port Error
...describes how to setup the Orchestration, the Port and handling the failure notifications.
Upvotes: 1
Reputation: 11527
In Transport Advance Options on your Send Port Properties, switch on Enable routing for failed messages.
Have something subscribing to the Error Report from that send port, e.g. we use a custom Null Adapter with the rule ErrorReport.SendPortName == NameOfSendPort
Upvotes: 2