问题
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.
回答1:
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
回答2:
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.
来源:https://stackoverflow.com/questions/54129686/handling-biztalk-dynamic-wcf-webhttp-ports-suspended-messages