Hints on Savon and Rails

So I had to use the Savon gem recently, and there’s a couple pitfalls that aren’t super well documented.

There’s a couple great resources for learning however. Most notable are the Savon docs themselves and Ryan Bates’ RailsCasts. Keep in mind that Ryan Bates is using an older version of the gem, so refer to the docs for syntax.

Before you tear into your SOAP integration, you may do well to make sure the api responds expectedly using wsdlbrowser.com. That will give you a list of available actions (granted you can do that with Savon too). Stay away from SOAPui that Ryan Bates recommends. In my experience it was totally unusable on Mac OS 10.9. That and it’s probably a little too feature heavy for your average SOAP integration. YMMV.

The biggest pitfall I came across was that Savon will not do anything unless you have httpclient also installed. This is not in the Savon docs at all, I found it on an old closed issue in the github repo.

Once you have that going, you’ll probably be set.

Feel free to contact me on twitter @davidwdegraw if you have any questions or comments.

 
10
Kudos
 
10
Kudos

Now read this

Safari VS Chrome: An Experiment

I’m a huge Google fanboy. I’ll disclose that right now. But when it comes to hardware, you just can’t beat a macbook. And really, when it comes to full featured OS, you can’t beat OSX. One thing has always bothered me though, petty as it... Continue →