Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
IDAPI Actuate 11 SP3 eRDPro File Rendering SOAP SERVER ERROR
Marcel.D
Hi,<br />
<br />
i have a problem with idapi. I created the library and login is no problem. I can run a report with ExecuteReport (eReport-->rox). I see the file on the iserver. Now i get a problem when i want to render this file to pdf. I tried few examples with GetContent and so on. Always the same error message.<br />
<br />
I get the following Soap Server Error Message:<br />
<br />
Error: No file type specified in the request.<br />
<br />
<br />
Can help someone or has someone the same problem?<br />
<br />
many thanks in advance and regards<br />
Marcel<br />
<br />
<br />
<br />
<br />
<br />
<br />
ExecuteReport execReport = new ExecuteReport();<br />
execReport.setJobName("RunReport");<br />
execReport.setInputFileName(strInputFile);<br />
execReport.setRequestedOutputFile(requestedOutputFile);<br />
<br />
execReport.setParameterValues(parameterValues);<br />
execReport.setSaveOutputFile(new Boolean(true));<br />
execReport.setProgressiveViewing(new Boolean(false));<br />
ExecuteReportResponse execRepResponse = new ExecuteReportResponse();<br />
execRepResponse = acControl.proxy.executeReport(execReport);<br />
System.out.println("Report Status: " + execRepResponse.getStatus());<br />
<br />
ObjectIdentifier obj = new ObjectIdentifier();<br />
obj.setId(execRepResponse.getObjectId());<br />
<br />
ViewParameter param = new ViewParameter(); <br />
param.setFormat("PDF");<br />
SelectPage requestPage = new SelectPage();<br />
requestPage.setViewParameter(param);<br />
requestPage.setDownloadEmbedded(true);<br />
ObjectIdentifier objectID = new ObjectIdentifier();<br />
objectID.setId(execRepResponse.getObjectId());<br />
objectID.setType(execRepResponse.getOutputFileType());<br />
System.out.println(execRepResponse.getOutputFileType());<br />
requestPage.setObject(objectID);<br />
GetPageCount getPageCount = new GetPageCount();<br />
getPageCount.setObject(objectID);<br />
GetPageCountResponse pageCount = acControl.proxy.getPageCount(getPageCount);<br />
System.out.println(pageCount.getPageCount());<br />
PageIdentifier pageRange = new PageIdentifier();<br />
pageRange.setRange("1-" + pageCount.getPageCount());<br />
requestPage.setPage(pageRange);<br />
<span style='color: #FF0000'>SelectPageResponse pageResponse = acControl.proxy.selectPage(requestPage);</span><br />
byte[] attachment = pageResponse.getPageRef().getContentData();
Find more posts tagged with
Comments
RSiegler
Marcel,
How is your SOAP header set up?
As it appears that you are using Java to implement IDAPI requests, you may have something similar to the following set up:
ActuateAPIEx actuateAPI;
actuateAPI = ActuateAPILocatorEx();
actuateAPI.setTargetVolume("MyVolume");
If this is the case then you should perform the following:
String fileType = "ROX"; //This is if you are executing a report executable. Set as file type for the item
//that is being run such as RPTDESIGN, RPTDOCUMENT, ROI, etc.
actuateAPI.setFileType(fileType);
Please let me know if you are running into trouble with this after ensuring that your header has this information in it.
Ryan Siegler
Marcel.D
Hello Ryan,
thanks a lot. I put this in my code before i call the response:
acControl.actuateAPI.setFileType(execRepResponse.getOutputFileType());
and now i get the file.
Thanks a lot again and regards
Marcel