Tag:

在Ruby 1.9.2中使用SOAP和其他标准库

所以,我最近升级到1.9.2 Ruby,永远使用1.8.7(我想尝试Rails 3)。 我遇到的最大问题是我的SOAP要求语句都没有工作……我有类似的东西: require ‘soap/rpc/driver’ require ‘xsd/qname’ require ‘soap/wsdlDriver’ require ‘ftools’ 即使是ftools也无法正常工作,但我认为(看看Ruby源代码)这成了’fileutils’? 但我没有看到任何类似的SOAP …..它刚被删除? 如果是这样……我该怎么办? 是否有任何插件基本上做同样的事情? 我的代码是这样的: require ‘soap/wsdlDriver’ def send_package adi_url = “ftp://anonymous:ads123@#{APP_CONFIG[‘pcms_ip’]}/#{self.id}/original/ADI.XML” cl0 = SOAP::WSDLDriverFactory.new(APP_CONFIG[‘corba_bridge’]) driver = cl0.create_rpc_driver driver.streamhandler.client.receive_timeout = 10 x = driver.exportPackage2(self.name+self.id.to_s, adi_url, “NS2.PackageFactory”) log x if x.to_s =~ /ERROR/ raise x.to_s end end 和 require ‘soap/rpc/driver’ require ‘xsd/qname’ def […]