[insert_php] $url = “http://webapi.suvidya.ac.in/SuvidyaWebsite_WebService.asmx?wsdl”;
$client = new SoapClient($url);
$res = $client->GetEventsConvocationDetails(array(“EventType”=>”Induction”));
$any = $res->GetEventsConvocationDetailsResult->any;
$xml = simplexml_load_string($any);
$json = json_encode($xml);
$array = json_decode($json);
$table = $array->NewDataSet->Table;

for($i=0; $iId;
$title = !is_object($table[$i]->imgHeader) ? $table[$i]->imgHeader : “”;
$desc = !is_object($table[$i]->imgDesc) ? $table[$i]->imgDesc : “”;

$imgLink = “https://sit.suvidya.ac.in”;
$url1 = “http://webapi.suvidya.ac.in/SuvidyaWebsite_WebService.asmx?wsdl”;
$client1 = new SoapClient($url1);
$res1 = $client1->GetEventsConvocationDetailsByImageId(array(“ImageId”=>$eventId));
$any1 = $res1->GetEventsConvocationDetailsByImageIdResult->any;
$xml1 = simplexml_load_string($any1);
$json1 = json_encode($xml1);
$array1 = json_decode($json1);
$table1 = $array1->NewDataSet->Table;

echo “

“.$title.”

“;
echo “

“.$desc;

$count = count($table1);
if($count > 1){
for($j=0; $j<$count; $j++){ $imgName = !is_object($table1[$j]->filepath) ? $table1[$j]->filepath : “”;
if($imgName != “”){
$imgUrl = $imgLink.$imgName;
echo “

“;
}
}
}
else{
$imgName = !is_object($table1->filepath) ? $table1->filepath : “”;
if($imgName != “”){
$imgUrl = $imgLink.$imgName;
echo “

“;
}
}
echo “

“;
}[/insert_php]