[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;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user