troelskn / handsoap

Handsoap is a library for creating SOAP clients in Ruby
http://github.com/unwire/handsoap
151 stars 2 forks source link

generator not working #15

Closed ultrasaurus closed 15 years ago

ultrasaurus commented 15 years ago
$ ./script/generate handsoap http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl weather
    exists  app
    exists  app/models
Expected exactly 1 interface/portType in WSDL

if I try the same steps that the generator does in script/console, I get that same failure with a stacktrace:

>> compiler.compile_service(protocol, :soap_actions)
RuntimeError: Expected exactly 1 interface/portType in WSDL
  from /Library/Ruby/Gems/1.8/gems/troelskn-handsoap-0.5.4/lib/handsoap/parser.rb:133:in `interface'
  from /Library/Ruby/Gems/1.8/gems/troelskn-handsoap-0.5.4/lib/handsoap/compiler.rb:137:in `compile_service'
  from /Library/Ruby/Gems/1.8/gems/troelskn-handsoap-0.5.4/lib/handsoap/compiler.rb:54:in `write'
  from /Library/Ruby/Gems/1.8/gems/troelskn-handsoap-0.5.4/lib/handsoap/compiler.rb:120:in `compile_service'
  from (irb):17

running on Mac OX 10.5.8, with the following software versions:

master $ rails -v
Rails 2.3.2
master $ ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
master $ gem list troelskn-handsoap

*** LOCAL GEMS ***

troelskn-handsoap (0.5.4)
troelskn commented 15 years ago

This has been fixed in 0.5.5. The generator will now decide, if there are multiple portType's available in WSDL.