Skip to content

Commit

Permalink
Lookup definitions in child element first
Browse files Browse the repository at this point in the history
  • Loading branch information
lfantone authored Aug 8, 2017
1 parent a337681 commit e1f90de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wsdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,7 @@ WSDL.prototype.findChildSchemaObject = function(parameterTypeObj, childName, bac
if (child.$base) {
var baseQName = splitQName(child.$base);
var childNameSpace = baseQName.prefix === TNS_PREFIX ? '' : baseQName.prefix;
childNsURI = this.definitions.xmlns[baseQName.prefix];
childNsURI = child.xmlns[baseQName.prefix] || this.definitions.xmlns[baseQName.prefix];

var foundBase = this.findSchemaType(baseQName.name, childNsURI);

Expand Down

0 comments on commit e1f90de

Please sign in to comment.