JasperReport Server REST 2 api - Repository servce does not give details on my created reports files - jasperserver

I am using JasperReports Server Rest v2 services, specifically the repository services, to find out all the reports hosted. I had created 2 reports inside a folder "Petrel" and those reports are working fine.
When I see the response of "rest_v2/resources" api I don't see the details about the newly created folder "Petrel" and also the details on 2 reports inside it.
And idea what is going wrong?

I was able to fix the above issue by using "rest/resources" which is actually the previous version of the api and added 2 query variables
recursive = 1
type = reportUnit

Related

Appservice deployment issue

Hi iam deploying my war file using azure appservice from azuredevops. deployment is getting completed successfully but when i hit the url Microsoft azure welcome page is displayed instead of application. can you please suggest a work around
In Azure Web Apps, the default document is the web page that is displayed at the root URL for a website. The first matching file in the list is used. Refer File structure on azure to know more about the files and directories on Azure Web App.
You may check whether the deployed files are available or not using Kudu Console.
Also, make sure that your startup file (For ex: index.htm) is added to the default documents section as mentioned above. You can delete the remaining files if not required and see if that works.
For details , you can refer to this case.

Copy List & Label server content from DEV to QA to PROD

Reproduce List & Label content in different environments.
I tried enabling List & Label API and use the methods, but input parameters need existing ParentFolderID, etc... which need to be explicitly created in server.
I am new with List & Label report server.
My requirement is to create all reports (data sources, etc...) in DEV server.
However to QA and PROD afterwards, there is a need to be able to 'export' all existing reports (data sources, etc...) from DEV.
My knowledge is more of Oracle BI Publisher.
In BIP server i have an option to download (zip) all the contents of a server folder (where i have all the reports) and i am able to log in another BIP server and upload the zipped file from original server.
This way i have exactly the same reports on all servers.
Is any sort of feature like it in List & Label report server?
Explicitly i need a kind of reports installer into List & Label report server.
Regards,
ccarvalho
Currently, there is no such feature. The suggested procedure would be to copy the entire database from Dev to Production if your're working with the Report Server on both ends. Would that work for you?
Other than that, if you're designing your reports from a desktop app and want to transfer them to the Server, you could use the REST API of the Report Server. Here is a blog post covering the basics of this API. The setup also contains a sample ("C# Client API Sample").

Jasper : How to keep HTTP header in datasource from Jaspersoft Studio to server?

Consider the following :
I have a PHP web application. This application is protected from any intrusion via a middleware that looks for the correct credentials everytime a call to a route is done. If your are logged in correctly, the page is displayed. If not, you are kicked out. Simple and easy.
Now, this application provides me with links that return JSON. This JSON is generated for the sole purpose of reporting. In Jaspersoft Studio, I created a JSON data adapter and used the provided links as the URL.
But that was not it yet. Since a middleware is checking every link calls in the application, I needed to add an exception for my reports. I decided that passing an encrypted token in the HTTP header was the solution. I then added the option into our data adapter.
It worked like a charm!
Now, to the problem :
Using the information provided on the Jaspersoft website, I exported my Data Adapter to the server. The thing is, the HTTP Header is not considered anymore when calling the data source from the server. Of course, my report does not work anymore. I then tested with a link hosted on another platform and it worked, even without the HTTP header.
So, my question is how do I keep the HTTP header in my datasource from Jaspersoft Studio to the server?
Edit 1: Jaspersoft Studio Version : 6.4.0, JasperSoft Server Version: 6.3.0
Those HTTP options were added in JasperReports 6.3.1. The closest Server version to support those features should be 6.4.0.

Get Files names pentaho rest api

Am using pentaho bi server community edition. I would like to integrate the pentaho report in my angular2 web application. I put the reports in a folder in the pentaho server , i would like to read the files names from this folder.
https://help.pentaho.com/Documentation/7.1/0R0/070/010.
As far as I understood your question, the response is under the File Management/Directory Resources section.
Don't forget to authenticate.

MS Project server 2016 update custom fields on tasks

For Project Server 2013 we’ve been using the SOAP API’s QueueUpdateProjectRequest to achieve this but in 2016 we can’t even checkout the project using SOAP.
We try to POST to /PWA/_vti_bin/psi/Project.asmx:
<?xml version='1.0' encoding='UTF-8' ?><ns2:Envelope xmlns:ns3="http://schemas.microsoft.com/office/project/server/webservices/Project/" xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/"><ns2:Header></ns2:Header><ns2:Body><ns3:CheckOutProject><ns3:projectUid>7475f3ef-226e-e611-80d3-0050568a983b</ns3:projectUid><ns3:sessionUid>c430ce2b-057e-4990-b5b6-9c6f28415739</ns3:sessionUid><ns3:sessionDescription></ns3:sessionDescription></ns3:CheckOutProject></ns2:Body></ns2:Envelope>
and get:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://Microsoft.Office.Project.Server">a:ProjectServerFaultCode</faultcode><faultstring>Unhandled Communication Fault occurred</faultstring><detail><string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Incorrect inproc routing. No inproc host is available for Project.</string></detail></s:Fault></s:Body></s:Envelope>
We’ve also tried writing the custom field values using custom field internal names when Merge Posting to /ProjectServer/Projects('{#project}')/Draft/Tasks('{#Id}’.
The server seems to ignore the custom field values while correctly updating system field values.
There is documentation for updating custom fields on Project, but not on Task: https://github.com/OfficeDev/Project-REST-Basic-Operations/blob/master/updateprojectcustomfieldvalues.ps1
What is the proper way for updating custom fields on Tasks in Project Server 2016?
According to Microsoft, there is no Project class in the PSI anymore:
https://technet.microsoft.com/en-us/library/mt422816(v=office.16).aspx#Anchor_2
Project Server Interface (PSI) Project class removed
The Project class in the PSI is not supported in Project Server 2016. For all new development, use the Project Client Side Object Model (CSOM).
I'm getting the same error for calling PSI functions from the Project class.
I'm not 100% sure, but I guess on the server itself, the REST/SOAP operations are still using the PSI in the end, so you get the same error.
No idea whether you can still achieve what you need with the REST/SOAP.
The solution will be to use CSOM (as suggested by Microsoft), but I don't know if it fits your application.