I get this error when calling Webservice from Android Phonegap application.
01-13 23: 49: 52.219: E / Web Console (529): Uncaught TypeError: cannot read the documentElement property of the null property in the 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;
source share