Tech Blech

Saturday, July 21, 2007

Using Ruby's WSDL driver to call a Microsoft C# SOAP web service

I've been learning Ruby and recently tried to call a Microsoft C# SOAP web service in Ruby. First thing I needed to do was upgrade Instant Rails to use the latest soap4r library v1.5.7 (it came with v1.5.5). How to do that is shown here and further explained here.

After that, it took a while to learn how to 1) suppress warnings that turned out to be non-critical, and 2) figure out the syntax needed to send parameters. The soap4r library's documentation page, although posted all over the internet, is essentially empty and useless. To save others some trouble, here's the code:

Web service:RSS Service

Method without parameter:getAllSiteNames()

Method with one parameter:getURL(siteName)

Labels: ,


  • Do you ever have to use NTLM authentication with SOAP?

    By Anonymous Anonymous, at 1:18 PM  

Post a Comment

<< Home