$soapClientParams = array('connection_timeout' => 300);
$soapClient = new
SoapClient("***",
$soapClientParams);
try {
$param = array(
'Login' => '***',
'password' => '***',
'category' => '',
'vendorid' => 0,
'keywords' => '',
'criterion' => 0,
'inArticul' => 0,
'inName' => 0,
'inMark' => 0,
'ShowNc' => 0);
$info = $soapClient->__call("GenCatalogV2", $param);
$arResult = ($info['Result']);
$xml = simplexml_load_string($arResult);
$json = json_encode($xml);
$xmlArr = json_decode($json, true);
print_r($xmlArr);
}
catch (SoapFault $fault) {
print("Sorry, WS returned the following ERROR:
".$fault->faultcode."-".$fault->faultstring);
}