Skip to content
Browse files

Handle passing in xml string for soap body.

  • Loading branch information...
1 parent 8cf215b commit 06fd4378d8306eeb4d8b0a7d3dfa374e6d667552 @adamghill adamghill committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/client.js
View
3 lib/client.js
@@ -105,6 +105,9 @@ Client.prototype._invoke = function(method, arguments, location, callback) {
message = self.wsdl.objectToRpcXML(name, arguments, alias, ns);
(method.inputSoap === 'encoded') && (encoding = 'soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" ');
}
+ else if (typeof(arguments) === 'string') {
+ message = arguments;
+ }
else {
assert.ok(!style || style == 'document', 'invalid message definition for rpc style binding');
message = self.wsdl.objectToDocumentXML(input.$name, arguments, input.targetNSAlias, input.targetNamespace);

0 comments on commit 06fd437

Please sign in to comment.
Something went wrong with that request. Please try again.