Comparing version 0.2.4 to 0.2.6
@@ -108,2 +108,5 @@ /* | ||
} | ||
else if (typeof(arguments) === 'string') { | ||
message = arguments; | ||
} | ||
else { | ||
@@ -134,3 +137,3 @@ assert.ok(!style || style == 'document', 'invalid message definition for rpc style binding'); | ||
catch (error) { | ||
return callback(error, null, body); | ||
return callback(error, response, body); | ||
} | ||
@@ -137,0 +140,0 @@ var result = obj.Body[output.$name]; |
@@ -28,3 +28,3 @@ /* | ||
if (typeof data == 'string') { | ||
headers["Content-Length"] = data.length; | ||
headers["Content-Length"] = Buffer.byteLength(data, 'utf8');; | ||
headers["Content-Type"] = "application/x-www-form-urlencoded"; | ||
@@ -31,0 +31,0 @@ } |
@@ -27,4 +27,7 @@ /* | ||
open_wsdl(url, options, function(err, wsdl) { | ||
if (!err) _wsdlCache[url] = wsdl; | ||
callback(null, wsdl); | ||
if (err) | ||
return callback(err); | ||
else | ||
_wsdlCache[url] = wsdl; | ||
callback(null, wsdl); | ||
}) | ||
@@ -31,0 +34,0 @@ } |
@@ -294,3 +294,3 @@ /* | ||
PortElement.prototype.addChild = function(child) { | ||
if (child.name === 'address') { | ||
if (child.name === 'address' && typeof(child.$location) !== 'undefined') { | ||
this.location = child.$location; | ||
@@ -354,3 +354,8 @@ } | ||
var type = nsName.name; | ||
this.parts[part.$name] = definitions.schemas[ns].types[type] || definitions.schemas[ns].complexTypes[type]; | ||
var schemaDefinition = definitions.schemas[ns]; | ||
if (typeof schemaDefinition !== 'undefined') { | ||
this.parts[part.$name] = definitions.schemas[ns].types[type] || definitions.schemas[ns].complexTypes[type]; | ||
} else { | ||
this.parts[part.$name] = part.$type; | ||
} | ||
this.parts[part.$name].namespace = nsName.namespace; | ||
@@ -357,0 +362,0 @@ this.parts[part.$name].xmlns = ns; |
{ | ||
"name": "soap", | ||
"version": "0.2.4", | ||
"version": "0.2.6", | ||
"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": ">=1.6.1", | ||
"request": ">=2.9.0" | ||
@@ -10,0 +10,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232243
1853
1
Updatednode-expat@>=1.6.1