Namespace should propagate to child nodes and clean up of unused code

I assume it's a bug (I'm unfortunately not that well versed with SOAP to know for sure but it caused my script to not work anyway) that the namespace didn't follow through to child nodes. This pull request fixes that issue. I also noticed some weird code that never gets triggered, which I removed (I assume there ain't no long term purpose of it?).