SOAP4r


#1

.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:inssl_connect’
/usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:1363:in connect' /usr/local/lib/ruby/1.8/timeout.rb:56:intimeout’
/usr/local/lib/ruby/1.8/timeout.rb:76:in timeout' /usr/local/lib/ruby/site_ruby/1.8/http-access2.rb:1351:inconnect’
/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:inquery’
/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:inconn_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:inget’
/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:inretry_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:infetch’
/usr/local/lib/ruby/1.8/wsdl/xmlSchema/importer.rb:30:in import' /usr/local/lib/ruby/1.8/wsdl/importer.rb:18:inimport’
/usr/local/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:170:in import' /usr/local/lib/ruby/1.8/wsdl/soap/wsdl2ruby.rb:34:inrun’
soap4r-1_5_5/bin/wsdl2ruby.rb:42:in run' /usr/local/lib/ruby/1.8/logger.rb:668:instart’
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 :slight_smile:


#2

-----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-----