Avatar of James Murphy
James Murphy
Flag for Australia asked on

Help with Soapclient 1.2

Hi,

Given the below soapclient - how can I a) check the version of tls that it is using, and b set it to 1.2 if it is not using that already?  I had assumed the browser I was using would control that side of things, but just want to double check!

$url = "https://www.SOMEURL/interface/api/report.asmx?wsdl";
//Create the client
$client = new SoapClient($url);
$datetimestamp = date("YmdHis");
$reportname = "report".$datetimestamp;

Open in new window


your help is very much appreciated!

cheers
PHPSOAP ProtocolWeb Languages and Standards

Avatar of undefined
Last Comment
James Murphy

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
gr8gonzo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
gr8gonzo

Oh, and to answer the other part of your question, there's not a very easy way to check which version is actually being used. Whenever I'm testing the SSL protocol being used, I install Wireshark on the client or server (whatever machine is initiating the connection), and then capture the connection attempt. The headers in the TCP packet will tell you the protocol being used.
James Murphy

ASKER
Thank you! Your help is very much appreciated!!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck