?> </tr> <?php // Print out the log file. try { $log = ZuoraAPIHelper::getFileContents($OUTPUT_FILE); $log_array = explode("\n", $log); foreach ($log_array as $line) { $columns = explode($SEPARATOR, $line); if (count($columns) > 1) { echo "<tr>"; foreach ($columns as $value) { echo "<td>" . $value . "</td>"; } echo "</tr>\n"; } } } catch (Exception $e) { } ?> </table> <p>Log File:<br/> <pre> <?php echo ZuoraAPIHelper::getFileContents($LOG_FILE); ?> </pre> </p> </body> </html>
public static function getXMLElementFromWSDL($wsdl) { $xml = ZuoraAPIHelper::getFileContents($wsdl); $xml_obj = new SimpleXMLElement($xml); $xml_obj->registerXPathNamespace("default", "http://schemas.xmlsoap.org/wsdl/"); $xml_obj->registerXPathNamespace("soap", "http://schemas.xmlsoap.org/wsdl/soap/"); return $xml_obj; }