diff --git a/src/BeSimple/SoapBundle/EventListener/SoapExceptionListener.php b/src/BeSimple/SoapBundle/EventListener/SoapExceptionListener.php index 89508b74..c31fb393 100644 --- a/src/BeSimple/SoapBundle/EventListener/SoapExceptionListener.php +++ b/src/BeSimple/SoapBundle/EventListener/SoapExceptionListener.php @@ -51,7 +51,9 @@ public function onKernelException(GetResponseForExceptionEvent $event) } $request = $event->getRequest(); - if ('soap' !== $request->getRequestFormat()) { + if (!in_array($request->getRequestFormat(), array('soap', 'xml'))) { + return; + } elseif ('xml' === $request->getRequestFormat() && '_webservice_call' !== $request->attributes->get('_route')) { return; }