Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ Server.prototype._process = function(input, URL, callback) {
// 3rd param is the NS prepended to all elements
// It must match the NS defined in the Envelope (set by the _envelope method)
var fault = self.wsdl.objectToDocumentXML("Fault", e.Fault, "soap");
fault=fault.replace("<soap:Text>","<soap:Text xml:lang=\"en\">");
callback(self._envelope(fault, includeTimestamp));
}
else
Expand Down
8 changes: 8 additions & 0 deletions lib/wsdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,14 @@ WSDL.prototype.objectToXML = function(obj, name, namespace, xmlns, first, xmlnsA

var value = '';
var nonSubNameSpace = '';

var nameWithNsRegex = /^([^:]+):([^:]+)$/.exec(name);
if (nameWithNsRegex) {
nonSubNameSpace = nameWithNsRegex[1] + ':';
name = nameWithNsRegex[2];
}


if (first) {
value = self.objectToXML(child, name, namespace, xmlns, false, null, parameterTypeObject, ancXmlns);
} else {
Expand Down