This project is read-only.

IE9 crash when checking state of wsdl variable

Topics: Developer Forum, User Forum
Jul 22, 2011 at 6:24 AM

In version 2.4 of the soapclient.js file (note this particular line did not change in 2.5) when using with IE9 an error occurs when attempting to check the cached version of wsdl:

if(wsdl + "" != "" && wsdl + "" != "undefined")

This fails on IE9 with an error "Object doesn't support this property or method", but only when the wdsl variable is not undefined (so typically the second time this code is run).  Note that is works fine on IE8 and Firefox 5.0.

Our resolution for this issue was to replace the above line with a typeof test:

if(typeof wsdl != 'undefined')

this has seemed to have resolved this issue for us.  This would be good to add to the source control as I am sure others will experience this in the future.

Aug 11, 2011 at 4:49 PM

Thanks for this, I was having this issue.