Gare in Corso
Gare in corso
o da poco terminate..
\n”);
$wsdl = ‘http://www.goandswim.com/gaspublicwcf/PublicEventService.svc?wsdl’;
$soapClient = new SoapClient($wsdl, array(‘cache_wsdl’ => 0));
try
{
$result = $soapClient->GetActualEventList();
$outterArray = ((array)$result);
$innerArray = ((array)$outterArray[‘GetActualEventListResult’]);
$dataArray = ((array)$innerArray[‘PublicEvent’]);
if ($dataArray==NULL)
{
echo “Non ci sono manifestazioni in corso”.NEWLINE;
}
else
{
foreach($dataArray as $PublicEventList)
{
$PublicEventArray = ((array)$PublicEventList);
$EventDescription= $PublicEventArray[‘_EventDescription’];
$EventId= $PublicEventArray[‘_EventId’];
$Committee= $PublicEventArray[‘_Committee’];
// echo “>> $EventId – $EventDescription “;
echo “Manifestazione organizzata da $Committee ” ;
echo ” $EventDescription “. NEWLINE;
}
// print_r($result);
}
}
catch (SoapFault $fault)
{
echo “Fault code: {$fault->faultcode}” . NEWLINE;
echo “Fault string: {$fault->faultstring}” . NEWLINE;
if ($soapClient != null)
{
$soapClient = null;
}
exit();
}
?>