Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for Issue #63 #65

Merged
merged 2 commits into from

3 participants

@darrenderidder

A fix for issue #63, namespace parsing for RPC encoded WSDLs.

Tested with node v0.6.15 on Ubuntu 12.04

@darrenderidder

This affects WSDLs with RPC encoding that are generated by JBOSS; this issue appears to be affecting a number of folks (see Issue #63). Thanks.

@milewise
Collaborator

thanks for this fix

@milewise milewise merged commit 15ec100 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/wsdl.js
View
7 lib/wsdl.js
@@ -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);
Something went wrong with that request. Please try again.