From: David Alphen Date: 2007-06-06T18:49:45+09:00 Subject: Re: Web Services problem: OpenSSL::X509::StoreError ------=_Part_46780_5268994.1181123384174 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline So I have changed the path to the ca.pem file. I have an other error. Let me explain. My problem is when I try to integrate it in my Rails application I have an argument error: ArgumentError in Air searchController#rt_results wrong number of arguments (1 for 0) RAILS_ROOT: D:/www/airtravelonrails/config/.. Application Trace | Framework Trace | Full Trace C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/array/conversions.rb:66:in `to_xml' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/array/conversions.rb:66:in `to_xml' Which is weird. If I don't pass any argument I have the error "wrong number of arguments (0 for 1) "... Here is my controller: require 'soap/header/handler' require 'http-access2' require 'soap/wsdlDriver' class AirSearchController < ApplicationController before_filter :check_authentication layout "layout" def index end def airports_for_lookup @airports = Airport.find(:all) @headers['content-type'] = 'text/javascript' render :layout => false end class EmptyHeaderHandler < SOAP::Header::Handler def on_outbound(header) # dump SOAPHeader even if it has no item header.force_encode = true header.extraattr['xmlns'] = 'http://webservices.site.com/definitions' # no item needed nil end end def rt_results wsdl = "D:/www/airtravelonrails/app/controllers/myWsdl.wsdl" factory = SOAP::WSDLDriverFactory.new(wsdl) driver = factory.create_rpc_driver driver.headerhandler << EmptyHeaderHandler.new(XSD::QName::EMPTY) parameters = { :messageActionDetails => { :functionDetails => { :actionCode => "***" } }, :originatorDetails => [{ :deliveringSystem => [ :companyIdentification => "****", :locationCode => "****" ], :originatorIdentification => [ :travelAgent => "********", :inHouseId => "********"], :agentDetail => [ :isoCountryCode => "**", :isoCurrencyCode => "***", :isoLanguageCode => "**"], :authorityCode => "*****" }], :requestSection => [{ :availabilityProductInfo => # etc ........................................ req = driver.Air_MultiAvailability(parameters) end end I don't know how to make a correct call to my web service... Thank you. On 6/6/07, NAKAMURA, Hiroshi wrote: > > -----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----- > > -- David ALPHEN ------=_Part_46780_5268994.1181123384174--