michaelkuan8888 Posted August 7, 2014 Share Posted August 7, 2014 I want to use PHP to create a folder named test under /root/Reports folder in JasperReports Server.I see this link (http://community.jaspersoft.com/wiki/php-client-sample-code) and write my code.Here is my code:<?php $c = new JaspersoftClientClient("http://localhost:8080/jasperserver","jasperadmin","jasperadmin"); $folder = new Folder; $folder->label = "test" $c->repositoryService()->createResource($folder,"/Reports/");?> However, JasperReports Server doesn't create a test folder.What is the errors that I made? Link to comment Share on other sites More sharing options...
H Mendoza Posted August 10, 2014 Share Posted August 10, 2014 Hi there - Maybe your have this already, but connection criteria is also needed. This is very rough, but I am assuming you have some experience with PHP. More information on your problem will help. error_reporting( E_ALL ^ E_DEPRECATED );require_once "php-sample/rest/client/JasperClient.php"; $client = new JasperJasperClient ( 'localhost', 8080, 'jasperadmin', 'jasperadmin', '/jasperserver-pro', 'organization_1' ); Link to comment Share on other sites More sharing options...
michaelkuan8888 Posted August 11, 2014 Author Share Posted August 11, 2014 Hi, Hugo. That means connection got problem? Where can I find php-sample/rest/client/JasperClient.php file? Link to comment Share on other sites More sharing options...
H Mendoza Posted August 11, 2014 Share Posted August 11, 2014 http://community.jaspersoft.com/project/php-client/resources 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