Permalink
Browse files

Merge pull request #71 from adamghill/master

Handle XML string argument for SOAP message body
  • Loading branch information...
2 parents 15ec100 + 76203c4 commit 2a8a09a3dafc55823eea3e5be32d605a021cafd7 @milewise milewise committed Aug 7, 2012
Showing with 5 additions and 2 deletions.
  1. +3 −0 lib/client.js
  2. +2 −2 package.json
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);
View
4 package.json
@@ -2,10 +2,10 @@
"name": "soap",
"version": "0.2.5",
"description": "A minimal node SOAP client",
- "engines": { "node": ">=0.6.0" },
+ "engines": { "node": ">=0.8.0" },
"author": "Vinay Pulim <v@pulim.com>",
"dependencies": {
- "node-expat": ">= 1.3.0",
+ "node-expat": "git://github.com/TooTallNate/node-expat.git#gyp",
"request": ">=2.9.0"
},
"repository" : {

0 comments on commit 2a8a09a

Please sign in to comment.