angular-soap icon indicating copy to clipboard operation
angular-soap copied to clipboard

Document is null

Open h4murabi opened this issue 8 years ago • 4 comments

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.

h4murabi avatar Feb 02 '17 16:02 h4murabi

I'm getting the same error. From looking at the code, I already have: 'SOAPClient.username' everywhere. Can you please elaborate on your solution?

diman82 avatar Feb 08 '17 14:02 diman82

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

konradD94 avatar Mar 29 '17 19:03 konradD94

I have the same problem...Do you have any solutions? Thanks!

ghost avatar Apr 20 '17 12:04 ghost

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?

Sushu1209 avatar Jan 08 '18 14:01 Sushu1209