Document is null
When set the header Authorization (line 252) the SOAPClient returns TypeError: document is null on soapclient.js:423:5.
PS: I changed the SOAPClient.userName by SOAPClient.username on the lines 249 and 252 because SOAPClient.userName always is null, the real value of username is on SOAPClient.username.
I'm using 3.0 version.
I'm getting the same error. From looking at the code, I already have: 'SOAPClient.username' everywhere. Can you please elaborate on your solution?
Getting the same issue. But im at "hello world" stage.
Cannot read property 'documentElement' of null at Function.SOAPClient._sendSoapRequest
My code
angular.module("app", ['services'])
.controller("MainController", ['myService' ,MainController]);
function MainController(myService) {
var vm = this;
myService.HelloWorld().then(function(response){
console.log(response);
});
}
and the service
angular.module("services", ['angularSoap'])
.factory("myService", ['$soap', service]);
function service($soap) {
return {HelloWorld: HelloWorld}
var base_url = "http://www.cooldomain.com/SoapTest/webservicedemo.asmx";
function HelloWorld(){
return $soap.post(base_url,"HelloWorld");
}
};
Can anyone help me? Thanks in advance
I have the same problem...Do you have any solutions? Thanks!
i am facing the same problem... soapclient.js:419 Uncaught TypeError: Cannot read property 'getElementsByTagName' of null at Function.SOAPClient._getElementsByTagName (soapclient.js:419)
any solution?