$wsdl = "http://BlackTDN:8088/ws02/UBTDNTVIEW.apw?WSDL"; try { $client = new SoapClient($wsdl, array("cache_wsdl" => WSDL_CACHE_NONE)); $alias = "SRA"; $deleted = false; $recno = false; $param = array("ALIAS" => $alias, "RDELETED" => $deleted); $result = $client->GETTRMAX($param); $tRMax = intVal($result->GETTRMAXRESULT / 10); if ($tRMax > 0) { $step = 40; $results = array(); for ($i = 1; $i <= $tRMax; $i += $step) { $e = min($i + $step, $tRMax); $param = array("ALIAS" => $alias, "RINIT" => $i, "REND" => $e, "RDELETED" => $deleted, "RRECNO" => $recno); $result = $client->GETTABLE($param); if (!is_soap_fault($result)) { array_push($results, $result); } } if (sizeof($results) > 0) { $result = $results[0]; } else { throw new Exception('No Results'); } echo "<table border='1' align='left'>"; echo "<thead>"; echo "<tr align='left'>"; echo "<th>FLDNAME</th>"; echo "<th>FLDTYPE</th>"; echo "<th>FLDSIZE</th>";