Fix: RepuveService consultar vehiculo
This commit is contained in:
parent
ff7b4a7d3d
commit
ffc0fd1fd9
@ -264,7 +264,7 @@ public function vehicleUpdate(Request $request)
|
||||
|
||||
// Consultar REPUVE Federal para obtener folio y tag_number
|
||||
try {
|
||||
$repuveResponse = $this->repuveService->consultarVehiculo($nivEstatal, $placa);
|
||||
$repuveResponse = $this->repuveService->consultarVehiculo($nivEstatal, null);
|
||||
|
||||
if ($repuveResponse['has_error']) {
|
||||
DB::rollBack();
|
||||
|
||||
@ -287,8 +287,12 @@ public function consultarVehiculo(?string $niv = null, ?string $placa = null)
|
||||
try {
|
||||
$url = $this->baseUrl . '/jaxws-consultarpv/ConsultaRpv';
|
||||
|
||||
// Construir arg2: NIV|PLACA|||||||
|
||||
$arg2 = ($niv ?? '') . '|' . ($placa ?? '') . str_repeat('|', 4);
|
||||
// Construir arg2: NIV||||||||
|
||||
if ($placa) {
|
||||
$arg2 = ($niv ?? '') . '|' . $placa . str_repeat('|', 5);
|
||||
} else {
|
||||
$arg2 = ($niv ?? '') . str_repeat('|', 7);
|
||||
}
|
||||
|
||||
$soapBody = <<<XML
|
||||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://consultaRpv.org/wsdl">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user