cancel
Showing results for 
Search instead for 
Did you mean: 

Web service connection: Fail to recieve fault messages

Anonymous
Not applicable
Hi! Please, let me know if somebody has already faced with same situation or have any ideas how to solve it. I have an access to 3d party web service (without any interface), I'm sending XML file to it and, according documentation, it should reply with OK xml message or Fault xml message. I checked manually, OK scenario is working, but on Fault scenario I receive 500 error first, skip it, and receive Fault xml message. Blue Prism identifies 500 error as internal BP error and is failed to finish the process. Resume stage leads to same 500 error. How to skip this 500 error to receive next Fault xml message by BP? BP v6, using REST VBO for connection to web service, modified JSON POST to XML POST. Thanks in advance
1 REPLY 1

OlaNykvist
Level 3
BP internally uses the .NET WebRequest object which unfortunately throws an exception instead of returning the error code and message when 4xx or 5xx errors occur. The only way I know to get around this is to modify the code stage with a try/catch-block when executing the request and then pass the resulting error back to the BP object.