使用Ruby调用MS .Net Web服务

时间:2009-02-13 14:16:55

标签: .net ruby web-services

有没有人这样做/有一些示例代码?

3 个答案:

答案 0 :(得分:4)

#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()

了解更多信息:http://dev.ctor.org/soap4r

答案 1 :(得分:0)

显然Ruby内置了wsdl driver

答案 2 :(得分:0)

此线程的良好起点 Ruby SOAP客户端与Microsoft .NET webservice的通信

here