[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

soap4r 1.4.8.1 with REXML 2.7.1 - no REXML::VERSION_MAJOR

Vassilis Rizopoulos

7/16/2003 8:30:00 AM

I grabbed the latest soap4r and had a go with the wsdl driver, only to
come to an abrupt stop with the following

site_ruby/1.6/wsdl/rexmlparser.rb:40:in `doParse': uninitialized
constant VERSION_MAJOR at REXML (NameError)
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/parser.rb:85:in `parse'
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:81:in `parse'
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:39:in
`initialize'
from wsdltest.rb:5:in `new'
from wsdltest.rb:5


I?m running 1.6.8 on W2K at the moment and I looked for a VERSION_MAJOR
in REXML but the beast does not want to show itself.
Any ideas ?
V.-


____________________________________________________________________
http://www.f... - aunaUi o?cnao?a ceaeoniieeiy oa?oaniia?io.
http://www.f... - free email service for the Greek-speaking.

2 Answers

Ian Macdonald

7/16/2003 9:04:00 AM

0

On Wed 16 Jul 2003 at 17:29:40 +0900, Damphyr wrote:

> I grabbed the latest soap4r and had a go with the wsdl driver, only to
> come to an abrupt stop with the following
>
> site_ruby/1.6/wsdl/rexmlparser.rb:40:in `doParse'': uninitialized
> constant VERSION_MAJOR at REXML (NameError)
> from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/parser.rb:85:in
> `parse''
> from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:81:in
> `parse''
> from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:39:in
> `initialize''
> from wsdltest.rb:5:in `new''
> from wsdltest.rb:5
>
>
> I?m running 1.6.8 on W2K at the moment and I looked for a VERSION_MAJOR
> in REXML but the beast does not want to show itself.
> Any ideas ?

I had similar problems.

Try the attached diff.

Ian
--
Ian Macdonald | Radial Telemetry Infiltration
System Administrator |
ian@caliban.org |
http://www.c... |
|

Vassilis Rizopoulos

7/16/2003 9:49:00 AM

0

OK, the patch for the version needs to be changed a bit:

- version_major, version_minor =
- REXML::Version.match(/(\d+)\.(\d+)/)[1,2].map! {|x| x.to_i}

+ version_major, version_minor =
+ /(\d+)\.(\d+)/.match(REXML::Version)[1,2].map! {|x| x.to_i}

After that comes the following:

"attr {}style"
f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/soap/operation.rb:46:in
`parseAttr'': Unknown attr {}style. (WSDL::WSDLParser::UnknownAttributeError)
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/parser.rb:188:in
`decodeTag''
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/parser.rb:170:in `each''
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/parser.rb:170:in
`decodeTag''
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/parser.rb:111:in
`startElement''
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/rexmlparser.rb:62:in
`tag_start''
from
f:/devlab/ruby/lib/ruby/site_ruby/1.6/rexml/parsers/streamparser.rb:17:in
`parse''
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/rexml/document.rb:166:in
`parse_stream''
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/rexmlparser.rb:55:in
`doParse''
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/wsdl/parser.rb:85:in `parse''
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:81:in `parse''
from f:/devlab/ruby/lib/ruby/site_ruby/1.6/soap/wsdlDriver.rb:39:in
`initialize''
from wsdltest.rb:5:in `new''
from wsdltest.rb:5

which probably means that not everything is supported by soap4r.
I''ve been playing around with the .NET Web Sedrvice stuff, and the wsdl
file I`m trying to parse is attached.
I''ll dig in further, but it''s going to take me a while
:)
V.-


____________________________________________________________________
http://www.f... - ?????? ???????? ???????????? ????????????.
http://www.f... - free email service for the Greek-speaking.