_objectManager = $objectManager; $this->_soapHandler = $soapHandler; } /** * Create SoapServer * * @param string $url URL of a WSDL file * @param array $options Options including encoding, soap_version etc * @return \SoapServer */ public function create($url, $options) { $soapServer = new \SoapServer($url, $options); $soapServer->setObject($this->_soapHandler); return $soapServer; } }