Permalink
Browse files

Merge pull request #65 from darrenderidder/master

Fix for Issue #63
  • Loading branch information...
2 parents 6b71610 + df412a8 commit 15ec1000f7d912416e1f97b98f671a7d57bc6da9 @milewise milewise committed Aug 7, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/wsdl.js
View
@@ -350,7 +350,12 @@ MessageElement.prototype.postProcess = function(definitions) {
var nsName = splitNSName(part.$type);
var ns = definitions.xmlns[nsName.namespace];
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;
this.parts[part.$name].xmlns = ns;
this.children.splice(i--,1);

0 comments on commit 15ec100

Please sign in to comment.