Hi
I want to consume some web services that are only available over HTTPS.
My method looks like this:
def lookup_id
myid=params[:id]
driver =
SOAP::WSDLDriverFactory.new("https://server.com/xxx.wsdl"\).create_rpc_driver
@p=driver.verifyId(AUTH_TOKEN, PIN, myid)
end
Although this works fine on my local box (with a warning), when deployed
to the staging server I get:
OpenSSL::SSL::SSLError (certificate verify failed):
Can anyone assist me in telling SOAP4R and/or OpenSSL to simply treat
this is a warning rather than an error?
This might have to go closer to the place where the connection is made. I'd just be diving into the soap4r code anyway, so splash on in yourself.
There is also a place (somewhere) that lets you put a similar line into a config file for your SSL connections. I think rdoc for the SOAP4R library has an example.