You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running into an error when parsing a WSDL file. Get the following error:
NoMethodError: undefined method `start_with?' for "name":String
from /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/savon-0.7.3/lib/savon/wsdl_stream.rb:55:in `read_namespaces'
Looking at that line in the source I notice that start_with? is being used on keys when parsing for namespaces. Ruby's API doesn't define a method start_with? for Strings, though RoR does.
Would it be better to do:
@namespaces[key.split(":").last] = value if key =~ /^xmlns:/
instead of:
@namespaces[key.split(":").last] = value if key.start_with? "xmlns:"
The text was updated successfully, but these errors were encountered:
Running into an error when parsing a WSDL file. Get the following error:
Looking at that line in the source I notice that start_with? is being used on keys when parsing for namespaces. Ruby's API doesn't define a method start_with? for Strings, though RoR does.
Would it be better to do:
instead of:
The text was updated successfully, but these errors were encountered: