Skip to content

Document is null #54

Description

@h4murabi

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.

Activity

  1. diman82 commented on Feb 8, 2017

    @diman82

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

  2. konradD94 commented on Mar 29, 2017

    @konradD94

    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

  3. Sushu1209 commented on Jan 8, 2018

    @Sushu1209

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions