Handling BizTalk dynamic WCF-WebHttp ports suspended messages

六月ゝ 毕业季﹏ 提交于 2021-01-29 06:23:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!