'end' => $end, 'newStart' => $newstart, 'newEnd' => $newend, 'resourceType' => $resourceType, 'course' => $course ); */ $params = array('requestingUser' => $requestingUser, 'id' => $id, 'minutes' => $minutes); $client = new SoapClient($wsdl, array('location' => $location)); if ($requestType == "User") { $result = $client->extendUserAppointment($params); } else { if ($requestType == "Mentor") { $result = $client->extendMentorAppointment($params); } else { if ($requestType == "Host") { $result = $client->extendHostAppointment($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 == 'modifyAppointment') { header('Content-Type: text/xml');