public function call($webservice) { $webServiceContext = $this->container->get('webservice.context.' . $webservice); $this->soapRequest = SoapRequest::createFromHttpRequest($this->container->get('request')); $this->serviceBinder = $webServiceContext->getServiceBinder(); $this->soapServer = $webServiceContext->getServerFactory()->create($this->soapRequest, $this->soapResponse); $this->soapServer->setObject($this); ob_start(); $this->soapServer->handle($this->soapRequest->getSoapMessage()); $soapResponseContent = ob_get_clean(); $this->soapResponse->setContent($soapResponseContent); return $this->soapResponse; }