[otrs] PHP and SOAP

2011-05-04 Thread Aleksander Walesa
Hi All, I'm struggling with SOAP from PHP. I've interface set up and can access API. But when I run this script (to display single ticket data): ?php $user = soap_user; $pass = soap_password; $url = http://192.168.9.149/otrs/rpc.pl;; $soapclient = new SoapClient(null, array('location' = $url,

Re: [otrs] PHP and SOAP

2011-05-04 Thread Shawn Beasley
Hello Aleksander, On May 4, 2011, at 14:22 , Aleksander Walesa wrote: Hi All, I’m struggling with SOAP from PHP. I’ve interface set up and can access API. But when I run this script (to display single ticket data): There is a d...@otrs.org and a user forum

Re: [otrs] PHP and SOAP

2011-05-04 Thread Roy Kaldung
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,

Re: [otrs] PHP and SOAP

2011-05-04 Thread Aleksander Walesa
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