kevlatimer Posted November 20, 2006 Share Posted November 20, 2006 Hi All, We've become huuuge Jasper fans in the last few months with the releases of JI and recent iReports and are looking at using it to replace our hand-coded FPDF and PHP stuff to spit out reports. Now, the tricky bit seems to the the letters PHP... I've seen a few posts on here regarding either the PHP-Java bridge, a piece of JasperConnector code, running a "jasperrunner" on the command line but I've struggled to put a lot of it into practice - I'm not much a programmer, and I've always struggled with languages like C and Java. I've also seen some talk of using the SOAP module in PHP5, and this seems like a better option for me, but SOAP isn't something I've had much exposure to. Basically, seeing as I've not had much luck with documentation (although I understand there is some webservices docs due in a few weeks), does anyone have any examples of PHP code that could be used to extract a report, with parameters and returning a PDF, from a JI 1.1.0 repository? Any help much appreciated - I'm sure I just need an idea of how to approach it and I can run with that! Many thanks, Kev Link to comment Share on other sites More sharing options...
sarahmei Posted November 21, 2006 Share Posted November 21, 2006 If you just want to run reports from PHP, you can use the URL addressing feature of 1.1.0. (A forum thread on how to do so.) To create reports, input controls, etc., you will indeed have to use the webservices interface. I don't have any PHP examples, but the source for the JI plugin to iReport is released. I think jasperintelligence-ireport-plugin-1.1.0/src/main/java/com/jaspersoft/jasperserver/irplugin/wsclient/WSClient.java is the relevant file. 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