Critical bug fixed in exception handling

Topics: Developer Forum
Jul 14, 2007 at 2:01 AM
Hi,

JavaScript SOAP Client was using an IE specific constructor for the Error class in the SOAP Fault handling section of SOAPClient._onSendSoapRequest.

I've uploaded a patch for this and also simplified a few conditionals and normalized formatting to the style most of it was written in.

A useful cross browser reference for the Error class:

http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Error#Created_by

Incidentally, while developing my application which uses SOAP Fault's I discovered the default behaviour ASP.NET has of returning HTTP status 500 when a web service throws an exception is not supported in Opera due to it always returning a null responseText and responseXML when the status code is not 200, which surprised me:

http://cfis.savagexi.com/articles/2007/06/12/opera-ajax-and-bugs