Forum: Ruby Ruby fails to parse wsdl

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0b4b2a1c00449c620b62bdd213e2382e?d=identicon&s=25 Simon Detheridge (sdetheridge)
on 2006-05-02 12:17
I posted this to ruby-talk but I got no reply, so I'm posting here.
Sorry... If anyone knows a better place to post it, please let me know.
I think it's a bug, but can't find a bug tracker on ruby-lang.org...

I'm trying to make Ruby talk to a webservice I'm working on, by having
it parse my wsdl using SOAP::WSDLDriverFactory. It's quite a complex
wsdl which imports a complex schema. Something's not working...
Eventually it says "RuntimeError: {}symbolisationBinding not found"

My wsdl validates in everything I've thrown at it (soapscope, WS-I,
others), and works with dotnet and gsoap, amongst other things.

The wsdl is at http://www.symgate.com/cml/symgate.wsdl
The schema is at http://www.symgate.com/cml/cml.xsd

I'm using ruby 1.8.4. I've tried with 1.8.2 - it fails, but with a
different error.

Here's what irb has to say about it:

irb(main):001:0> require 'soap/wsdlDriver'
=> true
irb(main):002:0>  soapFactory =
SOAP::WSDLDriverFactory.new('http://www.symgate.com/cml/symgate.wsdl')
ignored element: {http://www.w3.org/2001/XMLSchema}choice of
WSDL::XMLSchema::Sequence
ignored element: {http://www.w3.org/2001/XMLSchema}sequence of
WSDL::XMLSchema::Sequence
=>
#<SOAP::WSDLDriverFactory:{http://www.symgate.com/symgate}SymgateEngine>
irb(main):003:0> soap = soapFactory.create_rpc_driver
RuntimeError: {}symbolisationBinding not found
        from /usr/lib64/ruby/1.8/wsdl/port.rb:36:in `find_binding'
        from /usr/lib64/ruby/1.8/soap/wsdlDriver.rb:88:in `init_driver'
        from /usr/lib64/ruby/1.8/soap/wsdlDriver.rb:39:in
`create_rpc_driver'
        from (irb):3
irb(main):004:0> soap.inspect
=> "nil"

How can I either fix this problem, or report this as a bug?

Thanks,
Simon
B33ea5c12d767bfd1253940a960274f5?d=identicon&s=25 Tim Hunter (timhunter)
on 2006-05-02 14:27
Simon Detheridge wrote:
> I posted this to ruby-talk but I got no reply, so I'm posting here.
> Sorry... If anyone knows a better place to post it, please let me know.
> I think it's a bug, but can't find a bug tracker on ruby-lang.org...
>

The Ruby bug tracker is on RubyForge:
http://rubyforge.org/tracker/?atid=1698&group_id=4...
This topic is locked and can not be replied to.