Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

SOAP Extention Problem

Hi cyberde,
I have now resolved the issues of php4 being in use instead of php5 by using a .htaccess file for the api subdirectory, and when I use phpinfo() I get the following back -


But now when I run my test script I get the following -
Fatal error: Uncaught SoapFault exception: [AUTH] Authentication failed in /homepages/20/d158289393/htdocs/support/api/soap/test.php:22 Stack trace: #0 /homepages/20/d158289393/htdocs/support/api/soap/test.php(22): SoapClient->__call('', Array) #1 {main} thrown in /homepages/20/d158289393/htdocs/support/api/soap/test.php on line 22
Here is my code I am running with a selected amount removed :)

$osticket = new SoapClient('');

// Set up the parameters
$args = array(
'username' => 'chris',
'password' => 'xxxx',
'ticketData' => array(
'name' => utf8_encode('sir Test'),
'email' => utf8_encode(''),
'subject' => utf8_encode('testing'),
'message' => utf8_encode('this is a message'),
'topicId' => 3, //topic Website Support
'pri' => 2, // default priority
'phone' => '012-345678'

try {
// Send the request and receive the ticketID
$result = $osticket->__call('',$args);
catch (SoapFault $e) {
throw $e;


  • I think I may have answred my question after actually reading the error message [AUTH] Authentication Failure.

    Is this a SOAP authentication failure or to osTicket?
  • I seem to be replying to myself alot today!

    It is an osTicket username/password and now works perfectly, just need to get it integrated into a form and job done! :)

    Thanks for a great MOD!

Sign In or Register to comment.