14


We need to consume a webservices which got a WSDL that uses xsd:import for Data Types definitions. savon gem doesn't support as it uses wasabi.
We are using Ruby 1.9.2
Could you please suggest me some gems.

Regards Surendran

suren
  • 969
  • 4
  • 22
  • 1
    Surendran, I'm not 100% on this, but try soap4r. I'll test later in the day and let you know for sure if you haven't had a chance before then. – Val Akkapeddi Mar 22 '12 at 11:53
  • @ValAkkapeddi : Do you mean the gem from http://rubygems.org/gems/soap4r ? – suren Mar 22 '12 at 12:06
  • That's the one - I likely won't be able to test it until tonight, but please see if it does the job for you. – Val Akkapeddi Mar 22 '12 at 19:09
  • 1
    Unfortunately soap4r no longer appears to be maintained. I've used it with some success in the past. The best guidance I can provide is to look at ruby-toolbox https://www.ruby-toolbox.com/categories/soap Unfortunately, most of those don't appear to be maintained either, likely because everyone in the ruby community justifiably hates soap. – Daniel Evans Feb 19 '13 at 17:10
  • how about using a custom parser with [httparty](https://github.com/jnunemaker/httparty)? – onions Feb 19 '13 at 18:11
  • 1
    or [handsoap](https://github.com/unwire/handsoap) – onions Feb 19 '13 at 18:17
  • 3
    unfortunately, there is no good wsdl parser in ruby land. have you thought about using jruby? the java guys have some great soap libraries. – rubiii Feb 20 '13 at 19:50

1 Answers1

4

Unfortunately there doesn't seem any Gem out there which does what you want. My proposal for this situation:

  1. use SoapUI to examine the Web Service
  2. write your client using Savon http://savonrb.com

I've done this several times, there are a lot of people here who can help you with that approach.

Steffen Roller
  • 3,464
  • 25
  • 43