Ruby 使用 WSDL 调用 Web服务

2015-06-25 0 292
Ruby 使用 WSDL 调用 Web服务
require 'soap/wsdlDriver'
wsdl = 'http://yourserver.net/quotes.wsdl'
driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver

puts "Stock price: %.2f" % driver.getQuote('TR')

遇见资源网 ruby Ruby 使用 WSDL 调用 Web服务 http://www.ox520.com/16419.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务