H
H
Hosting Yaroslavl2018-02-27 10:22:25
SOAP
Hosting Yaroslavl, 2018-02-27 10:22:25

How to get information about an organization by BIC from the CBR website (cbr.ru) via SOAP, WSDL?

How to get information about an organization by BIC from the CBR website via SOAP?
Documentation:
www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx
www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?op...
What I ended up with:

$wsdl_uri    = 'http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDL';
$sc = new SoapClient($wsdl_uri); // вторым аргументом пробовал и false и true
$code = $sc->BicToIntCode($bik);
print_r($code);

Outputs -1 for correct BIC:
stdClass Object ( [BicToIntCodeResult] => -1 )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2019-04-28
@yarhosting

Set the input as an array:
$code = $sc->BicToIntCode(['BicCode' => $bik]);
$bank = $sc->CreditInfoByIntCode(['InternalCode' => $code->BicToIntCodeResult]);
print_r($bank);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question