} catch (\SoapFault $e) {
$this->aviaturRegisterException->log(
'SoapFault Exception',
json_encode($e)
);
throw new WebServiceException('No se pudo realizar la consulta en el servidor.', '', 100);
}
return $xmlResponseObject;
}
*
* @throws FatalErrorException
*/
public function callWebService($service, $provider, $xmlRequest)
{
$xmlResponseObject = $this->callServiceBus($this->projectDir, $service, $provider, $xmlRequest);
return $xmlResponseObject;
}
/**
$searchCss = ['http://travel.aviatur.com/templates/aviatur/css/template.css', 'http://www.aviatur.com/templates/aviatur/css/template.css', 'http://aviatur.com/templates/aviatur/css/template.css'];
// $replaceCss = array('http://190.66.17.238/templates/aviatur/css/template.css', 'http://190.66.17.238/templates/aviatur/css/template.css', 'http://190.66.17.238/templates/aviatur/css/template.css');
$error = 0;
if (empty($documentationRepository)) {
$response = $webService->callWebService('GENERALLAVE', 'dummy|http://www.aviatur.com.co/dummy/', $xmlTemplate);
$documentationEntity = new Documentation();
$documentationEntity->setIataCode($id);
$documentationEntity->setInfoDocumentation(base64_encode(json_encode($response)));
$documentationEntity->setCreationDate(new \DateTime());
$em->persist($documentationEntity);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
No log messages
WebServiceException
|
---|
Aviatur\GeneralBundle\Services\Exception\WebServiceException: No se pudo realizar la consulta en el servidor. at src/Aviatur/GeneralBundle/Services/AviaturWebService.php:305 at Aviatur\GeneralBundle\Services\AviaturWebService->callServiceBus() (src/Aviatur/GeneralBundle/Services/AviaturWebService.php:116) at Aviatur\GeneralBundle\Services\AviaturWebService->callWebService() (src/Aviatur/DocumentationBundle/Controller/DefaultController.php:42) at Aviatur\DocumentationBundle\Controller\DefaultController->indexAction() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (web/index.php:24) |