views:

167

answers:

3

Has anyone done this / have some example code?

A: 

Apparently Ruby has a built in wsdl driver.

BC
A: 

Good starting point in this thread Ruby SOAP client communication with Microsoft .NET webservice

here

Noah
+4  A: 
#use .wsdl file to initialize an RPC driver
driver = SOAP::WSDLDriverFactory.new('dotnetwebservice.wsdl').create_rpc_driver

#useful debugging call
driver.wiredump_dev = STDERR

#Set the enconding style to ASP.NET
driver.default_encodingstyle = SOAP::EncodingStyle::ASPDotNetHandler::Namespace

#call method defined in .wsdl
result = driver.serviceMethod()

For more info: http://dev.ctor.org/soap4r

Scott Stevenson