listByStatusAndEmail
Hi, I badly needed a function like listByStatusAndEmail, so I created one. I registered this new function in the index.php file and also created the function in ticket.class.php. However, when I try $result = $osticket->__soapCall( 'ostTicket.listByStatusAndEmail', $args );
I get an exception thrown: method 'ostTicket.listByStatusAndEmail'/'listByStatusAndEmail'('ostTicket.listByStatusAndEmail') not defined in service/'ostTicket'('ostTicket' '.')
Also, print_r( $osticket->__getFunctions() );
returns: Array
(
=> DepartmentInfo ostDepartment.getInfo(string $username, string $password, int $departmentId)
=> DepartmentInfoArray ostDepartment.listAll(string $username, string $password)
=> boolean ostTicket.assign(string $username, string $password, int $ticketId, int $staffId, string $message)
=> boolean ostTicket.close(string $username, string $password, int $ticketId)
=> boolean ostTicket.delete(string $username, string $password, int $ticketId)
=> TicketInfo ostTicket.getInfo(string $username, string $password, int $ticketId)
=> TicketMessagesArray ostTicket.getMessages(string $username, string $password, int $ticketId)
=> TicketNoteArray ostTicket.getNotes(string $username, string $password, int $ticketId)
=> string ostTicket.getStatus(string $username, string $password, int $ticketId)
=> TicketInfoArray ostTicket.listByStatus(string $username, string $password, string $status)
=> TicketInfoArray ostTicket.listByStatusAndEmail(string $username, string $password, string $status, string $email)
=> int ostTicket.open(string $username, string $password, TicketData $ticketData)
=> int ostTicket.postMessage(string $username, string $password, int $ticketId, string $message)
=> int ostTicket.postNote(string $username, string $password, int $ticketId, string $title, string $message)
=> int ostTicket.postReply(string $username, string $password, int $ticketId, int $messageId, string $message)
=> boolean ostTicket.release(string $username, string $password, int $ticketId)
=> boolean ostTicket.reopen(string $username, string $password, int $ticketId)
=> StaffInfo ostStaff.getInfo(string $username, string $password, int $staffId)
=> StaffInfoArray ostStaff.listAll(string $username, string $password)
=> TopicInfo ostTopic.getInfo(string $username, string $password, int $topicId)
=> TopicInfoArray ostTopic.listAll(string $username, string $password)
)
The new function gets registered in the WSDL, but still SoapClient apparently does not recognize it.
What am I doing wrong?