} } } } else { # Capture the data. $rawData = $line; $dataLine = array(); foreach ($dataHeader as $column) { $name = $column["name"]; $index = $column["index"]; # TBD: Validate the data. $value = ""; if ($index >= 0 && $index < count($rawData)) { $value = $rawData[$index]; } $dataLine[$name] = ZuoraAPIHelper::xmlspecialchars(trim($value)); } $payload[] = $dataLine; } if ($error) { break; } $counter++; } // Close input file. fclose($handle); fwrite($lf, "Read in " . ($counter - 1) . " total lines of input.\n"); # Process the data. # Make the API call. $client = createClient($wsdl, $debug); $client->setLocation($service_url);
<td><input tabindex="108" type="text" size="3" name="object-ns" value="<?php echo $_SESSION['object-ns'] ?>"/></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table width="99%" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td>Enter your query text or call xml here:<br /> <textarea tabindex="7" rows="10" cols="60" name="body" wrap="virtual"><?php echo ZuoraAPIHelper::xmlspecialchars($_SESSION['body']) ?></textarea><br /> <input tabindex="8" type="submit" value="Submit" name="submit"/><input tabindex="11" type="submit" value="Clear" name="reset"/> <input tabindex="9" type="checkbox" name="csv">CSV Output</input> <input tabindex="10" type="checkbox" name="queryMore">Use QueryMore to get all results</input><br /> </td> <td> <table> <tr> <td>API Call Templates:</td> <td></td> </tr> <tr> <td>- Pick an Operation:</td> <td><select tabindex="92" onChange="document.getElementById('operation').value = this.value;" name="template-op"> <option value=""></option> <?php
function xmlspecialchars($text) { return ZuoraAPIHelper::xmlspecialchars($text); }