[SoapBundle] Set wsdl request type only if the "wsdl" parameter in present in URL

This commit is contained in:
Francis Besset 2013-12-13 11:24:25 +01:00
parent 3a2b8e32ee
commit 321dcf3058
1 changed files with 4 additions and 3 deletions

View File

@ -95,9 +95,10 @@ class SoapWebServiceController extends ContainerAware
)
));
$query = $this->container->get('request')->query;
if (!$query->has('wsdl') && !$query->has('WSDL')) {
$this->container->get('request')->setRequestFormat('xml');
$request = $this->container->get('request');
$query = $request->query;
if ($query->has('wsdl') || $query->has('WSDL')) {
$request->setRequestFormat('wsdl');
}
return $response;