Forum: Ruby SOAP4r

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
47782acbd3acd4457655c02e7dcad098?d=identicon&s=25 Franz Bettag (Guest)
on 2006-05-19 12:24
.oO(dexta@euphoria ~) soap4r-1_5_5/bin/wsdl2ruby.rb --type client
--force --wsdl "https://test-api.geotrust.com/webtrust/query.jws?WSDL"
at depth 1 - 19: self signed certificate in certificate chain
F, [2006-05-19T12:17:21.663978 #47373] FATAL -- app: Detected an
exception. Stopping ... certificate verify failed
(OpenSSL::SSL::SSLError)
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:1001:in `connect'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:1001:in `ssl_connect'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:1363:in `connect'
/usr/local/lib/ruby/1.8/timeout.rb:56:in `timeout'
/usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:1351:in `connect'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:1209:in `query'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:892:in `query'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:434:in `do_get_block'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:370:in `conn_request'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:285:in `request'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:260:in `get'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:239:in `get_content'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:349:in `retry_connect'
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:238:in `get_content'
/usr/local/lib/ruby/1.8/wsdl/xmlSchema/importer.rb:64:in `fetch'
/usr/local/lib/ruby/1.8/wsdl/xmlSchema/importer.rb:30:in `import'
/usr/local/lib/ruby/1.8/wsdl/importer.rb:18:in `import'
/usr/local/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:170:in `import'
/usr/local/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:34:in `run'
soap4r-1_5_5/bin/wsdl2ruby.rb:42:in `run'
/usr/local/lib/ruby/1.8/logger.rb:668:in `start'
soap4r-1_5_5/bin/wsdl2ruby.rb:125
I, [2006-05-19T12:17:21.664698 #47373]  INFO -- app: End of app.
(status: -1)

I know that i can do something like this:
 client = HTTPAccess2::Client.new
 client.ssl_config.verify_mode = nil
 content =
client.get_content("https://test-api.geotrust.com/webtrust/query.jws?WSDL")

But how to achieve this with SOAP4r? And should i even use SOAP4r or
something else? I am really clueless :)
C4ec160c6223ee24609cbd07fd922be5?d=identicon&s=25 NAKAMURA, Hiroshi (Guest)
on 2006-07-17 15:40
(Received via mailing list)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Sorry for late reply.

Franz Bettag wrote:
> .oO(dexta@euphoria ~) soap4r-1_5_5/bin/wsdl2ruby.rb --type client
> --force --wsdl "https://test-api.geotrust.com/webtrust/query.jws?WSDL"
> at depth 1 - 19: self signed certificate in certificate chain

> I know that i can do something like this:
>  client = HTTPAccess2::Client.new
>  client.ssl_config.verify_mode = nil
>  content =
> client.get_content("https://test-api.geotrust.com/webtrust/query.jws?WSDL")

Easiest way to do this is; download WSDL file with your browser and save
it anywhere.  Then specify the file location to --wsdl option.

If it's not enough, you can use property file "soap/property".
wsdl2ruby.rb and WSDLDriverFactory load "soap/property" file from
classpath.  You can define SSL definition in the property file.

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRLuSqR9L2jg5EEGlAQLA/ggAiLMMuT/k7LlguTaHOXjnIOb8OUhg3tqC
rC+Pnr+l2G5x0XGwmbfF7t1/Jb9iF7XgiqEBA4EjuUgUkqbZiK2q7qzdnWpSK3Wf
XqFKt1L7DMXPRxHKvesgz6WuE6oE6pKguWvnWgYGWA1gdZbyck0PxqSZ9xfcPuzm
YcJJjHhQCj9UuPQGB0HtmWjHuXGjmn1NLKdHgvy3rTyHIBYMyX+NDctROR2mPS8S
IrwHbW83WNgjqLqg4usykHIuHXHuPoifMh7srTNFdKVuJUSRtRdpUYqbw7p9adVw
rKzobuCojXhea4tA3aZ7O4h9+vTj4FnsfNqEuAPeApqAXn54n+uL1g==
=U4tS
-----END PGP SIGNATURE-----
This topic is locked and can not be replied to.