'end' => $end,
         					 'newStart' => $newstart,
         					 'newEnd' => $newend,
         					 'resourceType' => $resourceType,
         					 'course' => $course );
         */
         $params = array('requestingUser' => $requestingUser, 'id' => $id, 'start' => $start, 'end' => $end);
         $client = new SoapClient($wsdl, array('location' => $location));
         if ($requestType == "User") {
             $result = $client->modifyUserAppointment($params);
         } else {
             if ($requestType == "Mentor") {
                 $result = $client->modifyMentorAppointment($params);
             } else {
                 if ($requestType == "Host") {
                     $result = $client->modifyHostAppointment($params);
                 }
             }
         }
         $xml = new array2xml('results');
         $xml->createNode($result);
         echo $xml;
         //echo $result->success;
     } catch (Exception $e) {
         echo $e->getMessage();
     } catch (SoapFault $soapfault) {
         echo $soapfault->getMessage();
     }
 } else {
     if ($action == 'getCourses') {
         // Internal Function Call