savonrb / wasabi

A simple WSDL parser
MIT License
90 stars 84 forks source link

parse issue on wsdl #8

Closed jdamick closed 12 years ago

jdamick commented 12 years ago

i've been using savon for some time and on my latest update from 0.9.9 and wasabi 2.1.0 now i get:

Way down deep in wasabi at: Wasabi::Parser.parse

i haven't narrowed down the exact call that is triggering it, but i'm getting:

NoMethodError: undefined method `attribute' for nil:NilClass

Which is coming from Parser.rb message_ns_id, message_type = at_xpath(port_type_input, "../../../wsdl:message[@name='#{port_message_type}']/wsdl:part[1]").attribute("element").to_s.split(':')

My wsdl is here: http://ultra-api.ultradns.com:8008/UltraDNS_WS/v01?wsdl

jdamick commented 12 years ago

If you add a rescue [nil, nil] to that line it will fall through to the other way which appears to work ok..

Tigraine commented 12 years ago

I think I've encountered the same issue. The wsdl in question can be found here:

http://sc2.tigraine.at/project.xml

Tigraine commented 12 years ago

The latest update solved this issue for me.. Thanks!

rubiii commented 12 years ago

great. thank you.