Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #464 (new defect)

Opened 7 months ago

wsdl2ruby fails due to NoMethodError

Reported by: user Assigned to: nahi
Priority: high Milestone: undefined
Component: wsdl4r Version: 1.5
Keywords: Cc:

Description

While trying to implement some ws-eventing services:

C:\foo>c:\ruby\bin\wsdl2ruby.rb --wsdl eventing.wsdl --type client
--type server --classdef eventing
ignored attr: {}blockDefault
ignored attr: {}blockDefault
ignored attr: {}blockDefault
ignored element: {http://www.w3.org/2001/XMLSchema}anyAttribute of WSDL::XMLSchema::AttributeGroup
ignored element: {http://www.w3.org/2001/XMLSchema}anyAttribute of WSDL::XMLSchema::AttributeGroup
I, [2008-03-04T13:34:23.732000 #50540]  INFO -- app: Creating class definition.
I, [2008-03-04T13:34:23.732000 #50540]  INFO -- app: Creates file 'eventing.rb'.
F, [2008-03-04T13:34:23.747000 #50540] FATAL -- app: Detected an exception. Stopping ... undefined method `have_any?' for #<WSDL::XMLSchema::Group:0x38dd134> (NoMethodError)
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/complexType.rb:51:in `have_any?'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/complexType.rb:23:in `check_type'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/complexType.rb:19:in `compoundtype'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.rb:239:in `create_complextypedef'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.rb:117:in `dump_complextype'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.rb:116:in `collect'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.rb:116:in `dump_complextype'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.rb:60:in `dump'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:77:in `create_classdef'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:171:in `write_file'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:170:in `open'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:170:in `write_file'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:76:in `create_classdef'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:62:in `create_file'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:42:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/bin/wsdl2ruby.rb:46:in `run'
c:/ruby/lib/ruby/1.8/logger.rb:659:in `start'
c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/bin/wsdl2ruby.rb:137
c:/ruby/bin/wsdl2ruby.rb:16:in `load'
c:/ruby/bin/wsdl2ruby.rb:16
I, [2008-03-04T13:34:23.747000 #50540]  INFO -- app: End of app. (status: -1)

C:\foo>

I'm using the same wsdl with Axis without issue.

Attachments

eventing.wsdl (2.8 kB) - added by user on 03/05/08 03:56:17.
eventing.xsd (4.3 kB) - added by user on 03/05/08 03:56:46.
wsa.xsd (5.2 kB) - added by user on 03/05/08 03:57:03.
policy.xsd (9.4 kB) - added by user on 03/05/08 03:57:23.
utility.xsd (10.1 kB) - added by user on 03/05/08 03:57:57.

Change History

03/05/08 03:56:17 changed by user

  • attachment eventing.wsdl added.

03/05/08 03:56:46 changed by user

  • attachment eventing.xsd added.

03/05/08 03:57:03 changed by user

  • attachment wsa.xsd added.

03/05/08 03:57:23 changed by user

  • attachment policy.xsd added.

03/05/08 03:57:57 changed by user

  • attachment utility.xsd added.