catching 404 errors with the WCF-WebHttp adapter RRS feed

  • Question

  • Hi

    I am consume a Rest Service (GET verb). This service can return a 404 if what I am searching for is not found (standard pattern in REST). This raises a System.Web.Services.Protocols.SoapException in BizTalk which I can catch in my Orchestration, problem is its not exactly obvious that is a 404 

    This the error I get back is "There was no endpoint listening at xxx that could accept the message."

    Is there a way to capture the code coming back, do I need to implement a custom behavior to inspect HTTP header status property or do I have to deal with string searches etc in the exception text looking for no endpoint listening or similar?


    Biztalk Developer

    Friday, August 28, 2015 4:25 AM


All replies