Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Handle XML string argument for SOAP message body #71

Merged
merged 2 commits into from

2 participants

@adamghill

I couldn't pass in JSON that correctly represented what I needed in the SOAP body (there were attributes and numerous namespaces), so I just added a way to pass in an XML string instead.

@milewise milewise merged commit 2a8a09a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 5, 2012
  1. @adamghill
Commits on Aug 6, 2012
  1. @adamghill
This page is out of date. Refresh to see the latest.
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.4",
"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" : {
Something went wrong with that request. Please try again.