I have a problem with calling jasper report from web service.
I used this URL http://host:port/jasperserver[-pro]/rest_v2/reportExecutions to get request id ,and the output was something like following XML.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><reportExecution><exports><export><id>ee83c20b-6c3b-4299-88cb-57cc771aa7e2</id><outputResource><contentType>application/xls</contentType><fileName>myreport.xls</fileName><outputFinal>true</outputFinal></outputResource><status>ready</status></export></exports><reportURI>/reports/my_reports/myreport</reportURI><requestId>78183e2a-3740-4706-a058-a4d94508a9ad</requestId><status>ready</status><totalPages>1</totalPages></reportExecution>
Now I'm trying to run jasper report by the following url
http://localhost:8080/jasperserver/rest_
v2/reportExecutions/78183e2a-3740-4706-a058-a4d94508a9ad/exports/ee83c20b-6c3b-4299-88cb-57cc771aa7e2/outputResource
But this URL does not work properly. The question is How can I reform the URL to call the report?
Actually I need to call jasper report from oracle apex application but I don't want to use opal-consulting method to integrate oracle apex and jasper report I simply want to call a web service in PL SQL
I tried this URL --http://host:port/jasperserver/rest_v2/reports/[path to the report].[format]-- it works for me but it prompts user to log into jasper server. On the other hand this URL returns the report file, I need to have a URL to Download the output.
Could you please tell me how to call jasper report to generate output download link.
corresponding to jasper server Documents, it is possible to make a request and run a report in URL....you can find the documents here [http://community.jaspersoft.com/documentation/tibco-jasperreports-server-web-services-guide/v610/running-report-asynchronously-0][1]
Thanks for your help in advance
I didn't understand why do you need a request id to get the reports.
Try this URL
http://host:port/jasperserver/rest_v2/reports/[path to the report].[format]?
Related
I'm looking for a way to obtain the report URL from within an SSRS report that is defined locally in an ASP.NET web application. I've tried using the Globals!ReportServerUrl Built-in field, but its not giving me anything useful ( just shows as #ERROR when I place the value in a text box ). I guess this is to be expected since the report doesn't actually live on report server and is defined locally in the app. Any input would be much appreciated.
Thanks in advance.
As pointed out in the comments, RDLC is rendered "locally". This -confusingly- may be on a server, but will still not have a Report Server URL (which is the cause for the error).
In the report you have no obvious way to find any HttpContext items like the request URL, which you seem to be after.
Simplest solution is probably to create a report parameter #RequestUrl and pass something from the HttpRequest into it.
(There's also Custom Code, which you could try, but I doubt it has access to the request URL.)
I am working with BizTalk 2010 and using the BAM API to record the body of an incoming message in the BAM_Itinerary_CompletedRelationships table of the BAMPrimaryImport database. This is working well and through SSMS I can see the inbound XML message in the LongReferenceData column. I was hoping to see link to this in the "Related Documents" section of the BAM Portal, but this is empty.
Does anyone know how to get this data to be displayed in the BAM portal?
I'd rather not write a custom / SSRS UI if I can avoid it!
With the API you should be able to achieve that using the AddReference method with a type of DocumentUrl - see http://msdn.microsoft.com/en-us/library/aa956649.aspx
This blog might also have some useful info for you - http://geekswithblogs.net/gwiele/archive/2009/05/28/132469.aspx
Good luck!
I have an ASP.NET web page with a ReportViewer control that dynamically loads a report based on the URL and I want to set the DisplayName for the report from code as well. This name is used as the suggested file name whenever someone exports the report to a file.
Now I'd like to use the report description (which is baked in the report file when it's deployed on Reporting Services) for that name but I don't find a way to retrieve that (other than parsing the XML. I guess this should be possible through the ReportViewer control as well.
Ultimately I could also use the value from a TextBox (generated by an expression) in the report (if I rename it consistently over all reports).
Anyone knows how to get either of those values?
It's a property of the catalog item from the SSRS web service endpoint. You'll need to add a web reference to the ReportService2010 wsdl, and then you'll be able to get a list of CatalogItems. Each of those will have a Description property. Note that this can only be set programatically or via the SSRS management interface, it can't be set in BIDS.
http://msdn.microsoft.com/en-us/library/reportservice2010.catalogitem.description
I am updating an existing reporting system in ASP.NET which uses crystal reports. In the past reports have been given their parameters by session variables, however I now have a need to post them in the web address e.g.
www.mysite.com?reportname=myreport&year=2009
I have grabbed the parameters off using request.querystring as usual and the report generates and the first page looks ok. However as soon as I try to go to the next page on the report viewer toolbar the report errors getting no data.
If I remove the parameters and hard code some values the page works fine. Any ideas if this is a known issue with crystal reports? Is there a way around it?
I'm thinking it's something to do with caching not working when parameters are in the address, have something in the back of my mind about it
It seems to be an issue with crystal reports, it must use the address in some way. I modified my code to put in an intermediate page where the request.querystring variables are put into the session and then the user is forwarded to another page which generates the report.
I know this is working because I'm getting data populated in a jQuery plug-in once it parses the JSON response. And I've called this so many times before in the past just to check out the returned JSON in the browser. But lately for whatever reason, and after I've stepped through with the debugger to find that the code in my .ashx is working just fine, I get a download prompt returned prompting me to download the .ashx file instead of JSON
http://localhost:59396/xxx/xxxHandler.ashx?action=getproducts&showprodname=true&showprodprice=true&ids=5410,8362,6638,6758,7795
Have you observed your network traffic (e.g. www.fiddler2.com)? What Content-Type is getting returned?
Have you saved the file to see what's actually in it?
If you're getting source code, that means that the HTTPHandler isn't actually running to actually execute the ASP.NET source.
Have you hosted the web page under IIS?
It could be because .ashx file extension is not registered with IIS. Check for .ashx extension under IIS file mappings in that case.
Confirm you have the proper content type as EricLaw suggests, but if you are trying to browse directly to the JSON, it is working as designed. Request the url from javascript and see if you get the expected data response. The browser sees the file as a ASHX file, which is registered to visual studio, but it is actually just a text file you should be able to read in anything if it is in fact json.