First, create a new SoapClient object, passing the URL to the WSDL file and optionally, an array of options.
// Create a new client object using a WSDL URL
$soap = new SoapClient('https://example.com/soap.wsdl', [
# This array and its values are optional
'soap_version' => SOAP_1_2,
...