Fixed SOAP error handling