How can I return HTTP-400 from a BizTalk Rest service?
问题 I am using BizTalk 2013 R2 and I have a RESTFUL service. How can I return a HTTP-400 response to a client? 回答1: Set WCF.OutboundHttpStatusCode property in message assignment shape: MyResponseMessage(WCF.OutboundHttpStatusCode) = "400"; 回答2: Oleg's answer will work if you have an Orchestration If you want a messaging only solution you will have to have a Pipeline Component set the same context property. For this we tend to use the BizTalk Business Rules Engine Pipeline Framework In your