有人做过这个/有一些示例代码吗?
最佳答案
#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
关于.net - 使用 Ruby 调用 MS .Net Web 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/546080/