public function factory($wsdl, array $soapOptions = [])
{
$defaults = ['trace' => true, 'exceptions' => true, 'keep_alive' => true, 'cache_wsdl' => WSDL_CACHE_BOTH, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS, 'classmap' => $this->classMap->toSoapClassMap(), 'typemap' => $this->typeConverters->toSoapTypeMap()];
$options = array_merge($defaults, $soapOptions);
return new SoapClient($wsdl, $options);
}