[SoapBundle] Set wsdl request type only if the "wsdl" parameter in present in URL
This commit is contained in:
parent
3a2b8e32ee
commit
321dcf3058
|
@ -95,9 +95,10 @@ class SoapWebServiceController extends ContainerAware
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
$query = $this->container->get('request')->query;
|
$request = $this->container->get('request');
|
||||||
if (!$query->has('wsdl') && !$query->has('WSDL')) {
|
$query = $request->query;
|
||||||
$this->container->get('request')->setRequestFormat('xml');
|
if ($query->has('wsdl') || $query->has('WSDL')) {
|
||||||
|
$request->setRequestFormat('wsdl');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
|
|
Loading…
Reference in New Issue