Thanks Roy, This is exactly what was needed :)
Best Regards, Aleksander -----Original Message----- From: otrs-boun...@otrs.org [mailto:otrs-boun...@otrs.org] On Behalf Of Roy Kaldung Sent: Wednesday, May 04, 2011 3:14 PM To: User questions and discussions about OTRS. Subject: Re: [otrs] PHP and SOAP Hi Aleksander, I wrote a little wrapper class for me and that's my TicketGet method: public function getTicketData ($ticketId) { $ticketData = $this->client->__soapCall('Dispatch', array($this->username, $this->password, "TicketObject", "TicketGet", "Result", "ARRAY", "UserID", 1, "TicketID", $ticketId)); $data = array(); foreach (array_keys($ticketData) as $key => $val) { $data[$key] = $ticketData[$val]; } $td = array(); for ($i = 0; $i < count($data); $i = $i + 2) { $td[$data[$i]] = $data[$i + 1]; } return $td; } The method returns a hash array, e.g. $ticketData['TicketFreeText5'] hth, Roy -- Roy Kaldung e-mail: r...@kaldung.com --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs