Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket_IgnoreRefund : DOMDocument::loadXML() Empty string supplied as input #453

Open
jeybin opened this issue Aug 16, 2022 · 2 comments
Open

Comments

@jeybin
Copy link

jeybin commented Aug 16, 2022

Im not able to ignore the refund request that already initialized.
error response:

**DOMDocument::loadXML(): Empty string supplied as input**

`function __construct($session_header) { 
	$this->ClientHelper = new ClientHelper;
	$this->client 	  	= $this->ClientHelper->client(TRUE);
	$this->client->setSessionData($session_header);
}

function ignoreRefund($ticketNumbers) {
	$response                     = $this->client->ticketIgnoreRefund(new TicketIgnoreRefundOptions([]));
	$response->session_header = $this->client->getSessionData();
	return $response;
}`

I followed the Ticket_IgnoreRefund from the samples. Always the function stops at the exception.

Kindly help .

Thank you.

@jeybin
Copy link
Author

jeybin commented Aug 16, 2022

Found the exception message mentioned below from

  • Namespace : Amadeus\Client\Session\Handler
  • Path : vendor/amabnl/amadeus-ws-client/src/Amadeus/Client/Session/Handler/Base.php
  • Function : sendMessage($messageName, Client\Struct\BaseWsMessage $messageBody, $messageOptions = [])

catch (\SoapFault $ex) {
dd($ex);

  • Exception

SoapFault {
#2573
#message: "Function ("Ticket_IgnoreRefund") is not a valid method for this service"
#code: 0
#file: "/var/www/html/amadeus-project/vendor/amabnl/amadeus-ws-client/src/Amadeus/Client/Session/Handler/Base.php"
#line: 202
+"faultstring": "Function ("Ticket_IgnoreRefund") is not a valid method for this service"
+"faultcode": "Client"
+"faultcodens": "http://schemas.xmlsoap.org/soap/envelope/"
trace: {
/var/www/html/amadeus-project/vendor/amabnl/amadeus-ws-client/src/Amadeus/Client/Session/Handler/Base.php:202 { Amadeus\Client\Session\Handler\Base->sendMessage($messageName, BaseWsMessage $messageBody, $messageOptions = []) … › try { › $result->responseObject = $this->getSoapClient($messageName)->$messageName($messageBody); › $this->logRequestAndResponse($messageName); } /var/www/html/amadeus-project/vendor/amabnl/amadeus-ws-client/src/Amadeus/Client.php:1777 { Amadeus\Client->callMessage($messageName, $options, $messageOptions, $endSession = false) … › $sendResult = $this->sessionHandler->sendMessage( › $messageName, › $this->requestCreator->createRequest( } /var/www/html/amadeus-project/vendor/amabnl/amadeus-ws-client/src/Amadeus/Client.php:1528 { Amadeus\Client->ticketIgnoreRefund(TicketIgnoreRefundOptions $options, $messageOptions = []) … › › return $this->callMessage($msgName, $options, $messageOptions); › } } /var/www/html/amadeus-project/app/Helpers/Flight/Amadeus/Refund/TicketIgnoreRefund.php:20 { App\Helpers\Flight\Amadeus\Refund\TicketIgnoreRefund->ignoreRefund($ticketNumbers) … › › $response = $this->client->ticketIgnoreRefund(new TicketIgnoreRefundOptions([])); › $response->session_header = $this->client->getSessionData(); } /var/www/html/amadeus-project/app/Helpers/BookingHelper.php:437 { App\Helpers\BookingHelper->getFlightCancelationPolicy($booking_sector_id) … › $ticketIgnoreRefund = new TicketIgnoreRefund($session_header); › $ignoreRefund = $ticketIgnoreRefund->ignoreRefund($ticketNos); › $session_header = $ignoreRefund->session_header; } /var/www/html/amadeus-project/app/Http/Controllers/Frontend/Holidays/CancellationPolicyController.php:955 { App\Http\Controllers\Frontend\Holidays\CancellationPolicyController->getFlightBookingCancellationPolicy($id, $currency, $date) … › $flightCanx = []; › $flightCancellation = $bookingHelper->getFlightCancelationPolicy($id); › foreach ($flightCancellation as $flightCancel) { } /var/www/html/amadeus-project/app/Http/Controllers/Api/v1/Holiday/Booking/CancellationController.php:302 { App\Http\Controllers\Api\v1\Holiday\Booking\CancellationController->getBookingCancellationPolicy(Request $request) … › case 2: › $cancellation['flight'][] = $canxPolicy->getFlightBookingCancellationPolicy($bookingId, $currency, $today); › break; } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 { Illuminate\Routing\Controller->callAction($method, $parameters) … › { › return $this->{$method}(...array_values($parameters)); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 { Illuminate\Routing\ControllerDispatcher->dispatch(Route $route, $controller, $method) … › if (method_exists($controller, 'callAction')) { › return $controller->callAction($method, $parameters); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/Route.php:262 { Illuminate\Routing\Route->runController() … › return $this->controllerDispatcher()->dispatch( › $this, $this->getController(), $this->getControllerMethod() › ); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/Route.php:205 { Illuminate\Routing\Route->run() … › if ($this->isControllerAction()) { › return $this->runController(); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:721 { Illuminate\Routing\Router->Illuminate\Routing{closure} … › return $this->prepareResponse( › $request, $route->run() › ); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › try { › return $destination($passable); › } catch (Throwable $e) { } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:50 { Illuminate\Routing\Middleware\SubstituteBindings->handle($request, Closure $next) … › › return $next($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 { Illuminate\Pipeline\Pipeline->then(Closure $destination) … › › return $pipeline($this->passable); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:723 { Illuminate\Routing\Router->runRouteWithinStack(Route $route, Request $request) … › ); › }); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:698 { Illuminate\Routing\Router->runRoute(Request $request, Route $route) … › return $this->prepareResponse($request, › $this->runRouteWithinStack($route, $request) › ); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662 { Illuminate\Routing\Router->dispatchToRoute(Request $request) … › { › return $this->runRoute($request, $this->findRoute($request)); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Routing/Router.php:651 { Illuminate\Routing\Router->dispatch(Request $request) … › › return $this->dispatchToRoute($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:167 { Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure} … › › return $this->router->dispatch($request); › }; } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › try { › return $destination($passable); › } catch (Throwable $e) { } /var/www/html/amadeus-project/vendor/proengsoft/laravel-jsvalidation/src/RemoteValidationMiddleware.php:61 { Proengsoft\JsValidation\RemoteValidationMiddleware->handle(Request $request, Closure $next) … › › return $next($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/vendor/fruitcake/laravel-cors/src/HandleCors.php:38 { Fruitcake\Cors\HandleCors->handle($request, Closure $next) … › if (! $this->shouldRun($request)) { › return $next($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/app/Http/Middleware/CorsMiddleware.php:40 { App\Http\Middleware\CorsMiddleware->handle($request, Closure $next) … › › $response = $next($request); › } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/app/Http/Middleware/RestrictIpMiddleware.php:18 { App\Http\Middleware\RestrictIpMiddleware->handle($request, Closure $next) … › if($CrawlerDetect->isCrawler() || $ip == '54.37.130.246' || $ip == '91.74.168.102') { › \treturn $next($request); › } else { } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 { Illuminate\View\Middleware\ShareErrorsFromSession->handle($request, Closure $next) … › › return $next($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121 { Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Request $request, $session, Closure $next) … › › $response = $next($request); › } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64 { Illuminate\Session\Middleware\StartSession->handle($request, Closure $next) … › › return $this->handleStatefulRequest($request, $session, $next); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/vendor/fideloper/proxy/src/TrustProxies.php:57 { Fideloper\Proxy\TrustProxies->handle(Request $request, Closure $next) … › › return $next($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 { Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) … › › return $next($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31 { Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle($request, Closure $next) … › › return parent::handle($request, $next); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 { Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) … › › return $next($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40 { Illuminate\Foundation\Http\Middleware\TrimStrings->handle($request, Closure $next) … › › return parent::handle($request, $next); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 { Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle($request, Closure $next) … › › return $next($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/app/Http/Middleware/CustomMaintenanceResponseMiddleware.php:30 { App\Http\Middleware\CustomMaintenanceResponseMiddleware->handle(Request $request, Closure $next) … › } › return $next($request); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 { Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure} … › $carry = method_exists($pipe, $this->method) › ? $pipe->{$this->method}(...$parameters) › : $pipe(...$parameters); } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 { Illuminate\Pipeline\Pipeline->then(Closure $destination) … › › return $pipeline($this->passable); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:142 { Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) … › ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware) › ->then($this->dispatchToRouter()); › } } /var/www/html/amadeus-project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111 { Illuminate\Foundation\Http\Kernel->handle($request) … › › $response = $this->sendRequestThroughRouter($request); › } catch (Throwable $e) { } /var/www/html/amadeus-project/public/index.php:56 { include … › $response = $kernel->handle( › $request = Illuminate\Http\Request::capture() › ); } /var/www/html/amadeus-project/index.php:2 { › <?php › include 'public/index.php'; › arguments: { "/var/www/html/amadeus-project/public/index.php" } } }`

@DerMika
Copy link
Collaborator

DerMika commented Aug 16, 2022

This error means you don't have access to this message with your WSAP. You need to ask Amadeus to give you access to this message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants