ronedog Posted April 28, 2010 Share Posted April 28, 2010 I would like to look at using some Web Services and want to test the PHP samples to get familiar with it, but I'm having problems getting it to run right.I'm running PHP 5.3.1, SOAP Client and SOAP Server are both enabled in the PHP.INI. and using PEAR 1.9.0, on a Windows vista with JasperServer 3.7I placed the "Samples" folder under <tomcat installation>/webapps/ directory, then went to http://localhost:8080/samples/php-sample/index.php to run the script and I get the following:--------getFault()->faultstring; } else { session_start(); session_unset(); session_register("username"); session_register("password"); $HTTP_SESSION_VARS["username"]=$username; $HTTP_SESSION_VARS["password"]=$password; header("location: listReports.php"); exit(); } } ?>Welcome to the JasperServer sample (PHP version)Type in a JasperServer username and password (i.e. jasperadmin/jasperadmin)------when I type in the username/pwd credentials index.php just posts to itself and does nothing? What is wrong with my enviroment? I'm pretty sure the "getFault()....bla, bla" section shouldn't be there...looks like the starting "<?php" tag was missing, but when looking at the code, it is not.I also tried putting this into my webserver's root running on Apache 2.0, but I get a bunch of "include" errors from the client.php page.Am I placing the Sample folders in the wrong place?Thanks in advance for any tips. Link to comment Share on other sites More sharing options...
ronedog Posted April 28, 2010 Author Share Posted April 28, 2010 O.k, I found that running it in the Apache webroot works, however, the index.php requires "SOAP/Client.php" but this folder and file are not in the directory. So, I tried to look for it in my php installation, but the only folder is for the Zend Framework and I tried copying the soap folder from there, but then it is trying to redeclare some zend classes....is there a different SOAP folder that was supposed to be included with the JasperServer install? Link to comment Share on other sites More sharing options...
ronedog Posted April 28, 2010 Author Share Posted April 28, 2010 Well, never found out why the samples don't work. But I found another post and their code worked, so I was able to test webservices and no longer need help with this question. Heres the link to the site that helped me: http://sneakybits.blogspot.com/2008/11/php-client-for-jasperserver-via-soap.html Link to comment Share on other sites More sharing options...
lucianc Posted May 4, 2010 Share Posted May 4, 2010 The samples use both the SOAP PEAR package http://pear.php.net/package/SOAP for the "main" JasperServer web service, and the PHP SOAP extension for the scheduling web service.Regards,Lucian Link to comment Share on other sites More sharing options...
ronedog Posted May 6, 2010 Author Share Posted May 6, 2010 Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now