|
|
 |
 |
 |
 |
Ruby Programming Language
|
 |
 |
 |
 |
 |
 |
 |
 |
Web Services problem: OpenSSL::X509::StoreError
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, David Alphen wrote: > _create a file in that dir called property that contains : > client.protocol.http.ssl_config.ca_file = ca.pem
Can you change above "ca.pem" to fully qualified pathname such as "D:/path/to/ca.pem" and see how it goes? Regards, // NaHi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) iQEVAwUBRmZN1B9L2jg5EEGlAQKpwQf+OE+vYNHovirqd1ka0W2DOT+OYiG7LMiu AF3H8ikcQivu2gQExdJQUoyWNmHZzyqZtkEP0u6RCZVE/6t3knDsQXyK1oiewWIE 5vTmyNJOI3zlSH0s4VpS/7x59zbRqdSoMZMcAuFXFtHHSq0iqx97BAd2XijnwdaI Tg4zhf/tJq1i17pUbxRuExqTZ+Zm3cFpPji/jzk95WwdBem2lbEdL0L3P5/Wu6/x Mq4iljXARQGrJ4/++7kN7XtrFl7BHK4tgRtbqGweos9LGBnn504dUx1TacXUo4of JsGDrko95mFmnelmgC0gtvE3h8KCz0ihEf/2q5r8S2hC9IYA0JUs8g== =217h -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, David Alphen wrote: > My problem is when I try to integrate it in my Rails application I have an > argument error:
1. rt_results run fine without Rails environment, right? > ArgumentError in Air searchController#rt_results > wrong number of arguments (1 for 0) > C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ ext/array/conversions.rb:66:in > `to_xml'
2. Can you show me the error dump of 'arguments (0 for 1)' as same as above, please? You get the same stack trace? 3. WSDLDrverFactory#create_rpc_driver parses WSDL every time you call it and it's heavy process. Please consider to use wsdl2ruby.rb or, call WSDLDriverFactory#create_rpc_driver only once and reuse the driver. Regards, // NaHi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) iQEVAwUBRmaznR9L2jg5EEGlAQLyuAf7Bx5niRktI/f7yba8RqbtgudzAA16lzAs 5ArxsghW1TLV3t6rX1Ike09nTmABvBvxcqb+6ieujj+i5nqCDxkdvO1OHbj4VT+C kSI1vyAI+9B3/JpXrBkkEASssu6OxWEtDN/kVW/SPHn/yioAZr8AfkYchTVNWYw3 H/pbL6lfv3PjFK4Q7+H1G89ilgfzrUUIVf+dVr76ftoMZ1CWCAQ+o3JjlyPTxSFs pisR/G6w2vp4FiEvpefuILRC1rWFCYKzwi6/bcTQUSTARs+7D2WJ6oErmEpGpPsE oMZHjQ1PuC2JAdJyOUzK47u0AkgmuGODgm6Uyt9pzfLhLCaUDOJTgw== =vD/H -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, David Alphen wrote: > 1. yes rt_results works fine without Rails environment.
OK. > 2. I have a different error, here is the application stack trace: > ArgumentError in Air searchController#rt_results > wrong number of arguments (0 for 1) > (eval):4:in `air_MultiAvailability' > C:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:117:in `__send__' > C:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:117:in `Air_MultiAvailability'
It's normal. You need to pass one argument then. (BTW, you can call driver.air_MultiAvailability instead of driver.Air_MultiAvailability. Soap4r converts a method name to Ruby compliant safer name and add a wrapper method for an original name as above) So the actual problem is 'wrong number of arguments (1 for 0)' raised from lib/active_support/core_ext/array/conversions.rb:66:in `to_xml'. I can't imagine why it's called but a method name 'to_xml' is suspicious. Two-ducks-close-but-not-the-same problem. Please post a full stack trace of 'wrong number of arguments (1 for 0)'? Regards, // NaHi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) iQEVAwUBRmbSaR9L2jg5EEGlAQLeDAf/QxpKFIX4i0W47pDa6xj8G2G1Wh1r6hJI f78l+IK5VPM2Gp2xncUMjiqhYMfa3sj2bHC8avMSTDbI8l3aKprDC/Q45ETZHTnb ZfUsGbfD/fee6RW3/6ZiyHi2HfPzto/cbw9RNWvEbbdLDYmjYLdYe3PMr1bHoJ0s 8rvY69TXmFivFl+Y+PiavyuSELe/oHwdGnsZHNTVXpL+KsSzqMuLNRPQOxA6jG1X K23PiwCUXJtRL4E2fQleAlpHG+U7cdeiv5wssjQZzCYYiZEu2E2RodyZMHN/pWjo t4Gnjmi2Qrf3K75/R2Qmu1IoSrgi1lOykZnVpPrm03pA52T5aEKwjg== =TSi6 -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I updated soap4r gem as 1.5.6-RC3. You can get it from http://dev.ctor.org/soap4r/wiki/WikiStart#a2007-06-07:1.5.6-RC3 . Would you please try the latest release candidate? David Alphen wrote: > Anyway, I'm still on the problem, I don't understand what it could be, here > is the full stack trace:
Thanks. I found that generic Array has to_xml instance method in Rails environment. The method requires Array's elements to have to_xml method with arity == 1 if it responds to to_xml. On the other hand, soap4r requires Objects to have to_xml method with arity == 0 if it responds to to_xml. I just renamed the method name to_xml to to_xmlpart in soap4r. This new feature is from soap4r-1.5.6 which is scheduled to be released on 2007-06-14. Regards, // NaHi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) iQEVAwUBRmgMaR9L2jg5EEGlAQIvRgf+JppfA5ApvC8ieDTGjXgKYKOQ9eMaiv+j n86O9Mv/FBFnM25bIufoKzC8fHPnNvO8NT01X8ZjGfPmbdxVb5EgCjt9iZ5wtWBx RDqXrMYjkIgNQdxv4NFZbSB7PJTiFl6Dznq4Vr8ML+Horf2YQ+xu9V5feSF4O3ri 9DKwHmo2RPp9Phg82y4TUOVJWkP38eIJXcctBCZ4YYrVy860q1ke/tOs+ip42fJd r5uTIrPS9y9KBvlRmGqiSBZTyayqHKnl9Cpr1aEJI/53LtMXBDdx5rBwqxGLa/M8 Ij+1POTmN8G5HomMGp67V4FYlAWuvA7vHSRk5iFlamUD3R3gRqTJiw== =6FW0 -----END PGP SIGNATURE-----
|
 |
 |
 |
 |
|