这个职位有点类似于此的其他职务:如何让Ruby的SOAP :: WSDLDriverFactory使用自签名证书?
How can I make Ruby's SOAP::RPC::Driver work with self signed certificates?
除了我使用WSDLDriverFactory:
@loginWsdlUrl = 'https://localhost:9843/services/LoginService?wsdl'
loginClient = SOAP::WSDLDriverFactory.new(@loginWsdlUrl)
loginClient.options['protocol.http.ssl_config.verify_mode' ] = OpenSSL::SSL::VERIFY_NONE
WSDLDriverFactory打开。新的()方法中的URL所以它似乎是不可能的先设置任何选项。我从来没有去过.options []行。
如何提前设置选项?或者,安装一个无所事事验证器?
你有没有找到一个解决这个? – 2011-12-10 14:34:20