Skip to content

Commit cd1918e

Browse files
committed
Removed namespace aliases to make it work with Sonos
1 parent f78668a commit cd1918e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/wsdl.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,8 @@ WSDL.prototype.objectToRpcXML = function(name, params, namespace, xmlns) {
821821
namespace = namespace || findKey(defs.xmlns, xmlns),
822822
xmlns = xmlns || defs.xmlns[namespace],
823823
nsAttrName = '_xmlns';
824-
parts.push(['<',namespace,':',name,'>'].join(''));
824+
// parts.push(['<',namespace,':',name,'>'].join(''));
825+
parts.push(['<',name,' xmlns="'+xmlns+'"','>'].join(''));
825826
for (var key in params) {
826827
if (key != nsAttrName) {
827828
var value = params[key];
@@ -830,7 +831,8 @@ WSDL.prototype.objectToRpcXML = function(name, params, namespace, xmlns) {
830831
parts.push(['</',key,'>'].join(''));
831832
}
832833
}
833-
parts.push(['</',namespace,':',name,'>'].join(''));
834+
// parts.push(['</',namespace,':',name,'>'].join(''));
835+
parts.push(['</',name,'>'].join(''));
834836

835837
return parts.join('');
836838
}

0 commit comments

Comments
 (0)