I needed a PHP version of my Ruby SOAP client for JaserpServer.
Here it is: http://gist.github.com/26205
Usage (this runs the report unit '/my_report' and returns the result in PDF format):
$jasper_url = "http://jasper.example.com/jasperserver/services/repository"; $jasper_username = "jasperadmin"; $jasper_password = "topsecret"; $client = new JasperClient($jasper_url, $jasper_username, $jasper_password); $report_unit = "/my_report"; $report_format = "PDF"; $report_params = array('foo' => 'bar', 'fruit' => 'apple'); $result = $client->requestReport($report_unit, $report_format,$report_params); header('Content-type: application/pdf'); echo $result;