Skip to content

Instantly share code, notes, and snippets.

@schamane
Created June 29, 2011 15:27
Show Gist options
  • Select an option

  • Save schamane/1054088 to your computer and use it in GitHub Desktop.

Select an option

Save schamane/1054088 to your computer and use it in GitHub Desktop.
node-soap bindings transport patch
diff --git a/lib/wsdl.js b/lib/wsdl.js
index 63da2d9..a827ba9 100644
--- a/lib/wsdl.js
+++ b/lib/wsdl.js
@@ -366,7 +366,8 @@ DefinitionsElement.prototype.addChild = function(child) {
self.portTypes[child.$name] = child;
}
else if (child instanceof BindingElement) {
- if (child.transport === 'http://schemas.xmlsoap.org/soap/http')
+ if (child.transport === 'http://schemas.xmlsoap.org/soap/http' ||
+ child.transport === 'http://www.w3.org/2003/05/soap/bindings/HTTP/')
self.bindings[child.$name] = child;
}
else if (child instanceof ServiceElement) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment