<Name>Mel</Name>
    </Employee>
  </Employees>
</Department>
*/
echo '<hr><br>';
echo "<b>Testing  BST Integration - jirasoapInterface </b>";
echo '<hr><br>';
echo "Configuration settings<br>";
echo "<pre><xmp>" . $cfg . "</xmp></pre>";
echo '<hr><br><br>';
// $safe_cfg = str_replace("\n",'',$cfg);
// echo $safe_cfg;
echo 'Creating INTERFACE<br>';
new dBug($itt);
$its = new jirasoapInterface(5, $cfg);
echo 'Connection OK?<br>';
var_dump($its->isConnected());
if ($its->isConnected()) {
    echo 'Get Issue <br>';
    $zx = $its->getIssue('ZOFF-112');
    var_dump($zx);
    //echo $zx->asXML();
    echo '<br>';
    // echo '<b>Connected !</br></b>';
    // echo '<pre>';
    // var_dump($its->getStatusDomain());
    // echo '</pre>';
    //echo 'Get Issue Summary<br>';
    //	echo($its->getIssueSummary('ZOFF-16'));
    //echo '<br>';
 *
 * @filesource	test.jirasoapInterface.class.php
 * @author		Francisco Mancardi
 *
 * @internal revisions
 *
**/
require_once '../../../../../config.inc.php';
require_once 'common.php';
$it_mgr = new tlIssueTracker($db);
$itt = $it_mgr->getTypes();
// <id>10101</id>
$cfg = "<issuetracker>\n" . "<username>testlink.forum</username>\n" . "<password>forum</password>\n" . "<uribase>http://testlink.atlassian.net/</uribase>\n" . "<uriwsdl>http://testlink.atlassian.net/rpc/soap/jirasoapservice-v2?wsdl</uriwsdl>\n" . "<uriview>http://testlink.atlassian.net/browse/</uriview>\n" . "<uricreate>http://testlink.atlassian.net/secure/CreateIssue!default.jspa</uricreate>\n" . "<projectkey>ZOFF</projectkey>\n" . "<issuetype>1</issuetype>\n" . "<attributes><components><id>10100</id><id>10101</id></components>\n" . "</attributes>\n" . "</issuetracker>\n";
echo '<hr><br>';
echo "<b>Testing  BST Integration - jirasoapInterface 'Do Androids Dream of Electric Sheep?' </b>";
echo '<hr><br>';
echo "Configuration settings<br>";
echo "<pre><xmp>" . $cfg . "</xmp></pre>";
echo '<hr><br><br>';
echo 'Creating INTERFACE<br>';
$its = new jirasoapInterface(5, $cfg);
echo 'Connection OK?<br>';
var_dump($its->isConnected());
if ($its->isConnected()) {
    $today = date("Y-m-d H:i:s");
    $issue = array('summary' => 'Issue Via API' . $today, 'description' => 'Do Androids Dream of Electric Sheep?');
    $zorro = $its->addIssue($issue['summary'], $issue['description']);
    echo '<pre>';
    var_dump($zorro);
    echo '</pre>';
}
		"<uricreate>http://testlink.atlassian.net/secure/CreateIssue!default.jspa</uricreate>\n" .
		"</issuetracker>\n";
*/
// last test ok: 20121117
$cfg = "<issuetracker>\n" . "<username>testlink.forum</username>\n" . "<password>forum</password>\n" . "<uribase>http://testlink.atlassian.net/</uribase>\n" . "<uriwsdl>http://testlink.atlassian.net/rpc/soap/jirasoapservice-v2?wsdl</uriwsdl>\n" . "<uriview>http://testlink.atlassian.net/browse/</uriview>\n" . "<uricreate>http://testlink.atlassian.net/secure/CreateIssue!default.jspa</uricreate>\n" . "</issuetracker>\n";
echo '<hr><br>';
echo "<b>Testing  BST Integration - jirasoapInterface </b>";
echo '<hr><br>';
echo "Configuration settings<br>";
echo "<pre><xmp>" . $cfg . "</xmp></pre>";
echo '<hr><br><br>';
// $safe_cfg = str_replace("\n",'',$cfg);
// echo $safe_cfg;
echo 'Creating INTERFACE<br>';
new dBug($itt);
$its = new jirasoapInterface(5, $cfg);
echo 'Connection OK?<br>';
var_dump($its->isConnected());
if ($its->isConnected()) {
    // echo '<b>Connected !</br></b>';
    // echo '<pre>';
    // var_dump($its->getStatusDomain());
    // echo '</pre>';
    // echo 'Get Issue Summary<br>';
    // echo($its->getIssueSummary('ZOFF-8'));
    // echo '<br>';
    // echo($its->getIssueSummary('ZOFF-8'));
    // I've seen things you people wouldn't believe.
    // Attack ships on fire off the shoulder of Orion.
    // I watched C-beams glitter in the dark near the Tannhauser gate.
    // All those moments will be lost in time... like tears in rain... Time to die.
 * @author		Francisco Mancardi
 *
 * @internal revisions
 *
**/
require_once '../../../config.inc.php';
require_once 'common.php';
$it_mgr = new tlIssueTracker($db);
$itt = $it_mgr->getTypes();
$cfg = "<issuetracker>\n" . "<username>testlink.helpme</username>\n" . "<password>jira</password>\n" . "<uribase>http://testlink.atlassian.net/</uribase>\n" . "<uriwsdl>http://testlink.atlassian.net/rpc/soap/jirasoapservice-v2?wsdl</uriwsdl>\n" . "<uriview>http://testlink.atlassian.net/browse/</uriview>\n" . "<uricreate>http://testlink.atlassian.net/secure/CreateIssue!default.jspa</uricreate>\n" . "</issuetracker>\n";
echo '<hr><br>';
echo "<b>Testing  BST Integration - jirasoapInterface </b>";
echo '<hr><br>';
echo "Configuration settings<br>";
echo "<pre><xmp>" . $cfg . "</xmp></pre>";
echo '<hr><br><br>';
// $safe_cfg = str_replace("\n",'',$cfg);
// echo $safe_cfg;
$its = new jirasoapInterface($itt['JIRASOAP'], $cfg);
// var_dump($its);
if ($its->isConnected()) {
    echo '<b>Connected !</br></b>';
    var_dump($its->getStatusDomain());
    /*
    $issue2check = array( array('issue' => 'TLJIRASOAPINTEGRATION-1', 'exists' => true),
      					  array('issue' => 'TLJIRASOAPINTEGRATION-199999', 'exists' => false));
    
    $methods = array('getBugSummaryString','getBugStatus','getBugStatusString',
    				 'checkBugID_existence','buildViewBugLink');
    */
}
 * @author		Francisco Mancardi
 *
 * @internal revisions
 *
**/
require_once '../../../../../config.inc.php';
require_once 'common.php';
$it_mgr = new tlIssueTracker($db);
$itt = $it_mgr->getTypes();
// last test ok: 20121117
$cfg = "<issuetracker>\n" . "<username>testlink.forum</username>\n" . "<password>forum</password>\n" . "<uribase>http://testlink.atlassian.net/</uribase>\n" . "<uriwsdl>http://testlink.atlassian.net/rpc/soap/jirasoapservice-v2?wsdl</uriwsdl>\n" . "<uriview>http://testlink.atlassian.net/browse/</uriview>\n" . "</issuetracker>\n";
echo '<hr><br>';
echo "<b>Testing  BST Integration - jirasoapInterface </b>";
echo '<hr><br>';
echo "Configuration settings<br>";
echo "<pre><xmp>" . $cfg . "</xmp></pre>";
echo '<hr><br><br>';
echo 'Creating INTERFACE<br>';
$its = new jirasoapInterface(5, $cfg);
echo 'Connection OK?<br>';
var_dump($its->isConnected());
if ($its->isConnected()) {
    echo 'Get Issue <br>';
    // $zx = $its->getIssue('ZOFF-112');
    // $zx = $its->getIssue('ZOFF-135');
    $zx = $its->getIssue('ZOFF-166');
    echo '<pre>';
    var_dump($zx);
    echo '</pre>';
    echo '<br>';
}