require 'rubygems'
#require 'soap4r'
require 'http-access2'
require 'soap/rpc/driver'
require 'soap/rpc/driver'
require 'net/http'
Net::HTTP.version_1_2
url ="http://online.mccolls.com.au:8080/wsa/wsa1/wsdl?targetURI=urn:OHWebServiceFMGT"
soap = SOAP::RPC::Driver.new(url,"urn:OHWebServiceFMGT")
soap.wiredump_dev = STDERR
soap.options["protocol.http.ssl_config.verify_mode"] =
OpenSSL::SSL::VERIFY_NONE
soap.add_method('getEmployeeFmgtDetails','pcEmployeeCode')
puts soap.getEmployeeFmgtDetails('02385')
Hitting error throws like this.
cacerts: C:/RhoStudio/ruby/lib/ruby/site_ruby/1.8/httpclient/cacert.p7s loading
failed
from C:/RhoStudio/ruby/lib/ruby/1.8/soap/streamHandler.rb:170:in `send_p
ost'
from C:/RhoStudio/ruby/lib/ruby/1.8/soap/streamHandler.rb:109:in `send'
from C:/RhoStudio/ruby/lib/ruby/1.8/soap/rpc/proxy.rb:170:in `route'
from C:/RhoStudio/ruby/lib/ruby/1.8/soap/rpc/proxy.rb:141:in `call'
from C:/RhoStudio/ruby/lib/ruby/1.8/soap/rpc/driver.rb:178:in `call'
from C:/RhoStudio/ruby/lib/ruby/1.8/soap/rpc/driver.rb:232:in `getEmploy
eeFmgtDetails'
from FinalFri.rb:14

New Topic/Question
Reply



MultiQuote




|