diff --git a/lib/savon/wsdl_stream.rb b/lib/savon/wsdl_stream.rb index 6b6bca7f..cd8b14e6 100644 --- a/lib/savon/wsdl_stream.rb +++ b/lib/savon/wsdl_stream.rb @@ -32,7 +32,7 @@ def tag_start(tag, attrs) if @section == :binding && tag == "binding" # ensure that we are in an wsdl/soap namespace - @section = nil unless @namespaces[namespace] == "http://schemas.xmlsoap.org/wsdl/soap/" + @section = nil unless @namespaces[namespace] =~ /^http:\/\/schemas.xmlsoap.org\/wsdl\/soap/ end @section = tag.to_sym if Sections.include?(tag) && depth <= 2