Deleted SoapServerFactory and used BeSimple\SoapServer\SoapServerBuilder to build the SoapServer

This commit is contained in:
Francis Besset
2011-10-12 22:01:50 +02:00
parent 70a85460c9
commit 32259355d6
3 changed files with 21 additions and 95 deletions

View File

@ -58,9 +58,11 @@ class SoapWebServiceController extends ContainerAware
$this->serviceBinder = $webServiceContext->getServiceBinder();
$this->soapRequest = SoapRequest::createFromHttpRequest($this->container->get('request'));
$this->soapServer = $webServiceContext->getServerFactory()->create($this->soapRequest, $this->getResponse());
$this->soapServer->setObject($this);
$this->soapServer = $webServiceContext
->getServerBuilder()
->withHandler($this)
->build()
;
ob_start();
$this->soapServer->handle($this->soapRequest->getSoapMessage());