Answer the question
In order to leave comments, you need to log in
How to organize a connection with EAISTO in php?
Good afternoon! Maybe someone knows how to interact with EAISTO through php? They have implemented the WSDL service, it works via SOAP, we try to add a car, and in response the error "Information about this vehicle has already been transferred today." This is how we send data and try to receive:
ini_set('soap.wsdl_cache_enabled', '0');
ini_set('soap.wsdl_cache_ttl', '0');
try {
$client_soap = new SoapClient("http://eaisto.gibdd.ru/common/ws/arm_expert.php?wsdl");
$params_register = array(
'user' => array (
'Name' => "$expert_eaisto_login",
'Password' => "$expert_eaisto_pass"
),
'card' => array(
'DateOfDiagnosis' => "$date_diag",
'Name' => "$fname",
'FName' => "$name",
'MName' => "$sname",
'RegistrationNumber' => "$gos_number",
'TestResult' => "$test_result_eaisto",
'TestType' => "Primary",
'Vehicle' => array(
'Make' => "$marka",
'Model' => "$model"
),
'VehicleCategory' => "$category_pts",
'VehicleCategory2' => "$category_okp",
'BodyNumber' => "$kuzov",
'FrameNumber' => "$shassi",
'DateOfRetest' => "$retest_date_eaisto",
'Year' => "$year",
'EmptyMas' => "$massa",
'MaxMass' => "$max_massa",
'Fuel' => "$fuel",
'VIN' => "$vin",
'BrakingSystem' => "$tormoza",
'Tyres' => "$shiny",
'Killometrage' => "$probeg",
'RegistrationDocument' => array(
'DocumentType' => "$reg_doc",
'Organization' => "$organ",
'Date' => "$doc_date_for_eaisto",
'Series' => "$doc_seria",
'Foreign' => "$inostr",
'Number' => "$doc_number"),
'Values' => array(
'Code' => "1",
'TestResult' => "$test_result"
),
'Form' => array(
'Duplicate' => false,
'Validity' => "$date_diag_end"
),
'Operator' => array(
'ShortName' => "$org_short_name",
'FullName' => "$org_long_name"
),
'Expert' => array(
'Name' => "$expert_name_eaisto",
'FName' => "$expert_fname_eaisto",
'MName' => "$expert_sname_eaisto"
),
)
);
$request_register = $client_soap->RegisterCard($params_register);
$card_id_itog = $request_register->RegisterCardResult;
$dk_number_itog = $request_register->Nomer;
}
catch (SoapFault $exception)
{
$exception->getMessage();
}
Answer the question
In order to leave comments, you need to log in
Forgive me for writing here.
Author, could you please contact me regarding WSDL EAISTO?
vk.com/mmtru, [email protected]
Thank you!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question