Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug causing client.describe() to yield incomplete results

Added mocha test to avoid it happenning again
  • Loading branch information...
commit ac32582fda22a26f1fbd28624f70ed0e73ac88a3 1 parent 1479c53
tonyskn tonyskn authored
Showing with 11 additions and 2 deletions.
  1. +0 −1  lib/wsdl.js
  2. +11 −1 test/server-test.js
1  lib/wsdl.js
View
@@ -508,7 +508,6 @@ PortTypeElement.prototype.description = function(definitions) {
return methods;
}
OperationElement.prototype.description = function(definitions) {
- return;
var inputDesc = this.input.description(definitions);
var outputDesc = this.output.description(definitions);
return {
12 test/server-test.js
View
@@ -71,6 +71,16 @@ module.exports = {
})
},
+ 'should return complete client description': function(done) {
+ soap.createClient('http://localhost:15099/stockquote?wsdl', function(err, client) {
+ assert.ok(!err);
+ var description = client.describe(),
+ expected = { input: { tickerSymbol: "string" }, output:{ price: "float" } };
+ assert.deepEqual(expected , description.StockQuoteService.StockQuotePort.GetLastTradePrice );
+ done();
+ });
+ },
+
'should return correct results': function(done) {
soap.createClient('http://localhost:15099/stockquote?wsdl', function(err, client) {
assert.ok(!err);
@@ -84,4 +94,4 @@ module.exports = {
},
'WSDL Parser (strict)': wsdlStrictTests,
'WSDL Parser (non-strict)': wsdlNonStrictTests
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.