public function getSeatMap(RequestSeatMap $requestSeatMap) { $service_type = 'consultarAutobus'; $formattedDateOfRun = $requestSeatMap->getDateOfRun()->format('c'); $service_params = array('in0' => $requestSeatMap->getRunId(), 'in1' => $formattedDateOfRun, 'in2' => $requestSeatMap->getOriginId(), 'in3' => $requestSeatMap->getDestinationId(), 'in4' => $requestSeatMap->getPosId(), 'in5' => $requestSeatMap->getSaleTypeId(), 'in6' => $this->usuario, 'in7' => $this->password); $soap_param = array('ventaService' => $service_params); $soap_response = $this->callSoapServiceByType($service_type, $soap_param); $response = ResponseSeatMapFactory::create($soap_response); return $response; }