Comparing version 0.2.2 to 0.2.3
@@ -178,2 +178,3 @@ (function() { | ||
var operations = searchNode(portTypes[0], 'operation'); | ||
@@ -194,2 +195,3 @@ var schema = searchNode(types[0], 'schema'); | ||
response.name = getName(output.attr.message); | ||
} | ||
@@ -202,16 +204,23 @@ }); | ||
var params = []; | ||
_(messages).each(function(message) { | ||
if (message.attr.name === method) { | ||
_(message.children).each(function(part) { | ||
if (_.indexOf(param_types, getName(part.attr.type)) !== -1) { | ||
var attr_data_type = part.attr.type || part.attr.element || null; | ||
if (_.indexOf(param_types, getName(attr_data_type)) !== -1) { | ||
return params.push({ | ||
'name' : part.attr.name, | ||
'namespace' : getNamespace(part.attr.type), | ||
'type' : getName(part.attr.type) | ||
'namespace' : getNamespace(attr_data_type), | ||
'type' : getName(attr_data_type) | ||
}); | ||
} | ||
var complex_type = searchNodeByName(schema[0], getName(part.attr.type)); | ||
var complex_type = searchNodeByName(schema[0], getName(attr_data_type)); | ||
if (complex_type === void 0) { | ||
return true; | ||
} | ||
var complex_content = searchNode(complex_type, 'complexContent'); | ||
@@ -234,2 +243,3 @@ | ||
var attribute = searchNode(complex_content_item, 'attribute'); | ||
var array_type = getName(attribute[0].attr['wsdl:arrayType']); | ||
@@ -285,3 +295,3 @@ array_type = array_type.split('[]'); | ||
var response_xml = new xmldoc.XmlDocument(params.response); | ||
var response_body = response_xml.childNamed('SOAP-ENV:Body'); | ||
var response_body = searchNode(response_xml, 'Body')[0]; | ||
@@ -296,3 +306,2 @@ var node_data = []; | ||
var returnValue = { | ||
@@ -306,3 +315,2 @@ status : true, | ||
var fault = searchNode(response_body, 'Fault'); | ||
if (!_.isEmpty(fault[0])) { | ||
@@ -309,0 +317,0 @@ var errors = []; |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"main": "./index", | ||
@@ -16,2 +16,7 @@ "dependencies": { | ||
}, | ||
"keywords": ["soap", "wsdl"], | ||
"repository" : { | ||
"type":"git", | ||
"url" :"https://github.com/moszeed/easysoap.git" | ||
}, | ||
"license": { | ||
@@ -18,0 +23,0 @@ "type": "MIT", |
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
21488
398
1
3
1