I'm getting this error while invoking a Webservice from Phonegap Android app.
01-13 23:49:52.219: E/Web Console(529): Uncaught TypeError: Cannot read property 'documentElement' of null at file:///android_asset/www/soapclient.js:158
Here is the relevant code:
var ns = (wsdl.documentElement.attributes["targetNamespace"] + "" == "undefined") ?
wsdl.documentElement.attributes.getNamedItem("targetNamespace").nodeValue :
wsdl.documentElement.attributes["targetNamespace"].value;