Example #1
0
<?php

set_time_limit(0);
echo "Hello";
try {
    $client = new SoapClient(NULL, array("location" => "http://footprints.sdsc.edu/MRcgi/MRWebServices.pl", "uri" => "MRWebServices", "style" => SOAP_RPC, "use" => SOAP_ENCODED));
    echo "NOWWWWWWWW";
    $issue_number = $client->MRWebServices__editIssue("kdly", "@daQh2obottle", '', array("projectID" => 3, "mrID" => 61141, "status" => "Closed"));
    print "<BR><b> Issue changed;<hr>\n";
} catch (SoapFault $exception) {
    echo "ERROR! - Got a SOAP exception:\n";
    echo $exception;
}
Example #2
0
 foreach ($infoArray as $property => $value) {
     if (isAbField($property)) {
         $abfield[$property] = $value;
     } else {
         if ($property == "status") {
             $changedStatus = $value;
         } else {
             $projfield[$property] = $value;
         }
     }
 }
 try {
     $client = new SoapClient(NULL, array("location" => "http://footprints.sdsc.edu/MRcgi/MRWebServices.pl", "uri" => "MRWebServices", "style" => SOAP_RPC, "use" => SOAP_ENCODED));
     if (count($projfield) == 0 && count($abfield) == 0) {
         if ($changedStatus == "Open" || $changedStatus == "Closed") {
             $issue_number = $client->MRWebServices__editIssue($username, $footprintPW, '', array("projectID" => 3, "mrID" => $ticket, "status" => $changedStatus));
             $changedStatus = "";
             echo "Issue successfully changed.";
         } else {
             echo "No changes were made.";
         }
     } else {
         if (count($projfield) == 0) {
             if ($changedStatus == "Open" || $changedStatus == "Closed") {
                 $issue_number = $client->MRWebServices__editIssue($username, $footprintPW, '', array("projectID" => 3, "mrID" => $ticket, "status" => $changedStatus, "abfields" => $abfield));
                 $changedStatus = "";
                 echo "Issue successfully changed.";
             } else {
                 $issue_number = $client->MRWebServices__editIssue($username, $footprintPW, '', array("projectID" => 3, "mrID" => $ticket, "abfields" => $abfield));
             }
             echo "Issue successfully changed.";