Reputation: 480
I wrote a php library which call to a wsdl in http.
Now i want to do the same things via https/ssl protocol.
So i changed the wsdl path but is not sufficient.
Here the code:
<?php
$options = array(
'trace' => 1,
'exceptions' => 0,
'login' => $login,
'password' => $password
);
$wsdl= "https://toto.com/tata/ws/tutu?wsdl";
$service = new SoapClient($wsdl,$options);
?>
In the server, i received the hit correctly but over http, not https:
For your information, i have openssl enabled:
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
OpenSSL Header Version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
Have you an explaination about that?
Thanks.
Upvotes: 0
Views: 521
Reputation: 70853
The WSDL file does contain the URLs to use for a service call. Is this changed to HTTPS as well? If not, you'd only see the request for the WSDL using HTTPS (and PHP has a cache for it, so it won't occur every time if not disabled).
Upvotes: 1