Generating a report from RTF template using WSDL from ADF

Hi,
I am a newbie to ADF-BIP integration.
I am using the wsdl http://<<ip>>:<<port>>/xmlpserver/services/PublicReportService?WSDL for generating a report from RTF Template in ADF.
We are using Oracle Business Intelligence Publisher Release 11g (11.1.1) and JDeveloper 11g (11.1.1.5.0).
I have a couple of merge variables in my RTF template and I am passing these variable using Report Request parameters.
below is code I added for creating the report request.
First I created publicReportService using webservice proxy.
    public static ReportRequest getReportRequestFromBIPWithTemplate(String reportFolderOnBIP,
                                                        String reportName,
                                                        String outputFileFormat,
                                                        String template,
                                                        HashMap params) {
      String reportAbsolutePath = reportFolderOnBIP + "/" + reportName + ".xdo";
      ReportRequest repRequest = new ReportRequest();
      System.out.println("report path:  " + reportAbsolutePath);
      repRequest.setReportAbsolutePath(reportAbsolutePath);
      repRequest.setAttributeTemplate(template);
      repRequest.setAttributeFormat(outputFileFormat);
      repRequest.setAttributeLocale("en-US");
      repRequest.setSizeOfDataChunkDownload(-1);
      System.out.println(params.size());
      ParamNameValue[] paramNameValue = new ParamNameValue[params.size()];
      ArrayOfParamNameValue arrayOfparamNameValue = new ArrayOfParamNameValue();
      Set set = params.entrySet();
      Iterator iter = set.iterator();
      int i = 0;
      while (iter.hasNext()) {
        Map.Entry me = (Map.Entry)iter.next();
        System.out.println(i + "--->>>" + me.getKey() + " : " + me.getValue());
        paramNameValue[i] = new ParamNameValue();
        paramNameValue.setMultiValuesAllowed(false);
ArrayOfString values = new ArrayOfString();
if (me.getValue() == null) {
values.getItem().add("");
} else {
values.getItem().add((me.getValue()).toString());
paramNameValue[i].setValues(values);
paramNameValue[i].setName((me.getKey()).toString());
arrayOfparamNameValue.getItem().add(paramNameValue[i]);
i++;
repRequest.setParameterNameValues(arrayOfparamNameValue);
return repRequest;
I generated report response bytes using below code
{code:java}
repRes = publicReportService.runReport(repReq,userID,password);
reportStream = repRes.getReportBytes();I could see the generated PDF but the supplied variables are NOT reflected in place of merge variables.
Ex: In template
Welcome, <<merge variable, userName>>
{code}
Generated PDF should have
{code:java}
Welcome, Hello World
{code}
Instead of the above I am getting
{code:java}
Welcome,
{code}
I am looking for a suggestion, Please help me in this regard.
Thanks,
Satya
Edited by: 921138 on May 30, 2012 11:11 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Please let me know if any one has update for this.
Thanks in advance,
Satya

Similar Messages

  • Generating TEXT output from RTF template/reports

    Hi ,
    We have been working with XML Publisher for a long time now.. and we have come across some requirements such as
    1. Page break in TXT report output
    2. Page Headers after every 'X' lines in TEXT output.
    This was easily achieved with RTF template and PDF/HTML/RTF output, but not with TEXT output in eTEXT template.
    So we started looking into two approaches
    1. Generate TXT from PDF/RTF/HTML output(generated from RTF template), though it will addon to the time, but we are looking for this approach. We are looking for some JAVA api's which can help us to extract text from PDF/HTML/RTF while preserving the format.
    2. Pass the TXT generated by eTEXT template to our custom util , which will split the report in diff. pages.This will get complex as we recieve more and more reports.
    We have also tried hacking the RTF parser used in XML P so as to get a TXT output or using XSL-FO objects in eTEXT parser, but we could not get anything of our help.
    Does anyone have any pointers in this.
    regards
    Gaurav

    You can burst with eText and I have done it
    successfully.
    I don't believe pagebreaks are an option in eText and
    I don't think it makes sense either since your
    generating a flat-file and not a customer or internal
    facing document. Does that make sense?
    Also, if you would like you can use the
    BIPublisherIDE, this code can be converted pretty
    easily to handle jcp. There is a an oa framework
    version I have developed but I haven't posted on my
    blog yet. I plan on adding a bolt on for java
    concurrent programs soon. it's really pretty simple
    just haven't had the time.
    http://bipublisher.blogspot.com/2008/03/bi-publisher-b
    ipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com
    Thanks Ike for your reply.
    I agree with your points on TXT files, but in our case,the reports are generated in TXT format for the customer so we are looking for the above mentioned features.
    I have gone through BIP IDE and its a wonderful small utility which eases the task of BIP development.
    As I mentioned in my original post that we are currently processing the generated TXT report using a custom util. in JAVA to get the desired output in TXT again.
    I assume thats not what a JCP would do,so I am looking to explore that too.
    As I understand the process for report generation is
    1. Generate XSL from eTEXT template.
    2. Get the XML data from DB using XDO
    3. Apply XSL on XML to get the required template.
    If we are looking to achieve some customizations then we need to have the XSL generated with those customizations.
    In this case, where do we plug in the JCP to alter XSL or am I missing something.
    regards
    Gaurav

  • Generating reports in RTF and using scandic letters.

    Hi,
    I'm having problems generating reports in RTF and using scandic letters in column/table comments (Description field). For example word "käyttäjätunnus" transforms in "käyttäjätunnus"!
    PDF works well.
    Thanks,
    user12957891

    Hi,
    I've just tested and looks like display problem.
    Both MSWord and WordPad are showing "käyttäjätunnus" instead of "käyttäjätunnus". But if you open RTF file with some text editor you will find "käyttäjätunnus" not "käyttäjätunnus" inside. So I suppose Word (Windows?) needs some filter(s) for scandic or something like that. But I guess you already have it ...
    I will search solution and if I find I'll write here.
    BTW: What do you use to open RTF, version ?

  • Excel changes needed from RTF Template

    Hi all,
    I created RTF template which it publish in excel format.I am getting correct report but here i want some Excel settings from RTF template.
    These all properties i want in Excel  output file which is generated from RTF.
    1) Page number must be displayed at the bottom of each printed page.
    2) Report should be landscape oriented.
    3) Column headers must display on each printed page of the report
    4) Page should be setup to print at 47%
    5) Freeze panes in one of cell.
    Thanks in advance!!!!
    Thanks
    KSS

    Hello KSS,
    ) Page number must be displayed at the bottom of each printed page.
    For this select the Insert-->Page Numbers and say position as bottom of the page.
    2) Report should be landscape oriented.
    Select File-->Pagesetup here select the oreintation as Landscape.
    3) Column headers must display on each printed page of the report
    You might have defined a table and included the desired values
    Select the table properties and go to the Row tab there check the option "Repeat as Header row at the top of each page"
    Kind Regards,
    Kumar.

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Problem in generating oracle 10g reports to rtf Template? (Emergency)

    Hi Team,
    I had a problem in generating rdf to rtf template.. I had an rdf template with place holders like this
    Hi i "Employee" <Empno> and my salary is <Empsal>
    but after the generation by using BIBatchConversion , i am getting partial rtf file like this
    Hi i "Employee"
    i am not getting the rest of the design... do i need to overwrite the rtf manually or do we have any other conversion process when we are using placeholders in rdf reports...
    Regards
    Bhu1

    hi...i already done what u had suggested but the error still come up.
    DECLARE
         RO_Report_ID REPORT_OBJECT;
         Str_Report_Server_Job VARCHAR2(100);
         Str_Job_ID VARCHAR2(100);
         Str_URL VARCHAR2(100);
         PL_ID PARAMLIST ;
    BEGIN
         PL_ID := GET_PARAMETER_LIST('TEMPDATA');
         IF NOT ID_NULL(PL_ID) THEN
              PAUSE;
    DESTROY_PARAMETER_LIST(PL_ID);
         END IF;
         PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
         RO_Report_ID := FIND_REPORT_OBJECT('REPORT_OBJ');
         ADD_PARAMETER(PL_ID, 's_sin_no', TEXT_PARAMETER,:scrap_delivery_request.sin_no);
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'C:\New Forms\REF_SF_510.rdf');
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'PDF');
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_edmund.main');
              Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
              Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('rep_edmund.main') + 2, LENGTH(Str_Report_Server_Job));
              Str_URL      := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=' || 'rep_edmund.main';
              WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
              DESTROY_PARAMETER_LIST(PL_ID);
    END;
    Edited by: baguhan on Jul 4, 2009 12:59 AM

  • Custom Java class called from RTF template generates error

    We are running a report in BI Publisher and the report calls a custom developed Java class that is used to bind PDFs together and sent the result to another application.
    On the RTF template we have some XSLT that reads the input XML and sets a variable which is then passed to the Java class. We are however getting the following error when the report is called simultaneously 2 or more times:
    XML-22044: (Error) Extension function error: Error invoking 'JavaClassName': 'java.lang.Error: Cannot interweave overlay template with pdf input, combined number of pages is odd!
    I read this as the real cause of the error is the Java code but I'm not 100% sure. Also I don't understand what the error message means.
    Could someone help out please?
    Many thanks

    Since our this requirement is in Quotes module, its not using OAF. It is using plain JSPs and java classes.
    What i was thinking is, create the Option values as flex fields, and write a custom java class to fetch these data from the flex tables and use it in the JSP.
    The main problem we are facing now is,
    "...we wrote a simple java class, which establishes database connection, executes a simple insert & select query to our custom table. compiled & placed the class file under our new pkg structure under $JAVA_TOP eg. oracle.apps.xxx.quot.tmpl , bounced the apache."
    But when we tried to import this class in the jsp (which is being customized), the app just throwed Internal Server Error and we couldnt find any info in the Log file.
    Couldnt guess, why is this simple thing failing. Any idea ?

  • Problem using WSDL from SAP in IBM's RAD for generating web service client

    When importing a WSDL from the ABAP stack on a SAP 6.40 system into IBM's RAD tool for generating a web service client there are errors with the soap fault classes that get generated.  The WSDL declares the types for the faults with WebServiceName.RfcException and these have elements of name, text, and message.  When the tools see this in the WSDL they generate classes that extend the Java exeception class and this causes an error because the "message" name conflicts with the standard java exception message.  Has anyone else ran into this problem?  It seems like a basic problem many java tools for generating web service client proxies would have because the soap faults get turned into java exceptions.  This name conflict of the java exception with the WSDL fault definition means that code always needs to be adjusted and cannot simply use the classes that are generated from the WSDL.  Anyone run across this or a similar problem in the java environment using the SAP WSDL?
    Aaron

    Hi,
    Hello again .
    Have you tried your service using soapui ?
    You can use your WSDL as input .
    In order to eliminate eclipse problem try this service:(I just did)
    http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL
    Regards.
    package main;
    import java.io.FileInputStream;
    import java.rmi.RemoteException;
    import java.util.Properties;
    import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapType;
    import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapTypeProxy;
    import org.oorsprong.www.websamples_countryinfo.TCountryCodeAndName;
    public class Main {
    public static void main(String[] args) {
      try {
       final Properties properties = new Properties();
       properties.load(new FileInputStream("properties.ini"));
       System.getProperties().putAll(properties);
      } catch (final Exception exception) {
       exception.printStackTrace();
      new Main();
    public Main() {
      try {
       final CountryInfoServiceSoapType infoServiceSoapType = new CountryInfoServiceSoapTypeProxy();
       final TCountryCodeAndName[] tCountryCodeAndNames = infoServiceSoapType.listOfCountryNamesByName();
       for (final TCountryCodeAndName tCountryCodeAndName : tCountryCodeAndNames) {
        System.out.println(tCountryCodeAndName.getSName());
      } catch (final RemoteException exception) {
       exception.printStackTrace();

  • Generating BIP report in RTF format generates blank report

    Hi all,
    When generating a BIP report in RTF format the report output is blank!?
    If I run the report in any other format the report displays the data correctly.
    We're running siebel 8.1.1.2 and BIP 10.1.3.4.1.
    When looking at the size of the report when the 'File Download' window appears it seem like the report contains data as the size is 62KB, compared to the pdf format which do display data is 20KB. The output generates the amount of pages that is needed for the report, but all pages are blank.
    The report is an activity List report with just one for-each statement in it.
    Has anybody come across the same?
    Regards,
    Hakan

    Hi alka,
    To invoke Word automatically, use command
    line options DESTYPE=CACHE,
    DESFORMAT=RTF and MIMETYPE=application/msword.
    This is an example URL: http://webserver:80/cg-bin/rwcgi60.exe?module
    =test.rdf&userid=scott/tiger@mydb&
    destype=cache&desformat=rtf&mimetype=application/msword&server=myrepserver
    1. Check the appropriate mimetype setting for Word by Starting Windows Explorer,
    choose View -> Options from the menu, go to the File Type tab, find Microsoft
    Word Document in this list, click Edit, and get the value for Content Type
    (MIME). This is the value that needs to be used in the MIMETYPE command line
    option, and it will typically be application/msword, but may differ on
    different machines.
    null

  • How to generate jasper report in pdf format using swing

    hi all,
    im new to swing and jasper.. can anybody provide me some example on how to generate the jasper report in pdf format? i will call the reportManager from sessionBean.. below is my code:
    1)delegate:
    public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
    GenerateReportDto generateReportDto = getAuditTrailServiceRemote().generateIntoPdfReport(fileName, outputFileName, parameters);
    return generateReportDto;
    2)sessionBean:
    public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
    //Map parameters = new HashMap();
    ReportManager reportManager = new ReportManager();
    3)ReportManager()
    public void generateIntoPdfReport(String fileName, String outputFileName, Map parameters) {
              Connection conn = null;
              try {
                   conn = dataSource.getConnection();
                   //Generate the report to bytes
                   File reportFile = new File(fileName);               
                   byte[] bytes =
                        JasperRunManager.runReportToPdf(
                             reportFile.getPath(),
                             parameters,
                             conn
              //conn.close();
              //Write the bytes to a file
              ByteBuffer buf = ByteBuffer.wrap(bytes);
              File file = new File(outputFileName);
              // (if the file exists)
              boolean append = false;
              // Create a writable file channel
              FileChannel wChannel = new FileOutputStream(file, append).getChannel();
              // Write the ByteBuffer contents; the bytes between the ByteBuffer's
              // position and the limit is written to the file
              wChannel.write(buf);
              // Close the file
              wChannel.close();
              } finally {
                   if (conn != null) {
    conn.close();
    Any help would be highly appreciated. Thanks in advance

    Hi ,
    One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
    Read for further info in 'PL/SQL Packages and Types Reference'.
    If you have access to OEM ... you can configure this there using wizard.....
    Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
    http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
    My greetings,
    Sim

  • Can one generate a report in Word document using PL/SQL?

    We have a weekly status report application created in APEX, is there a way to generate a report in MS Word document (including formatting the doc) using PL/SQL by pulling data from Oracle database? Please shed some lights on this and any info and experience would be greatly appreciated.
    We use Oracle11g and apex version 3.1.1.00.09
    Thanks!

    Hi Tony,
    you are right, the NEW format isn't necessarily improved, also the user would need at least Office 2007 or higher.
    Still it is possible to do that ;-)
    And yes, there are other possibilities, but this question is dealing with Word documents (.doc i assume).
    Also my Statement "docx = XML" isn't clear enough. Docx is a zipped file which contains a xml file. Details: http://en.wikipedia.org/wiki/Docx
    sorry for the confusions,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at

  • How to get the CSV,DATA output from RTF template

    Hi Jorge
    Thanks for your help.
    as in the link you have given RTF template can have the output type CSV,DATA but in the preview i can see only html,powerpoint,pdf,html excel .
    How to see the output in SCV,DATA format using my RTF template do i need to do specific design for those outputs.
    Thnaks in Advance

    It is because it has been preconfigured with such outputs.
    To modify and add more output types simply go to:
    1. Edit your Report
    2. Click on "View a List" (upper right hand corner)
    3. Click on the "output formats" (corresponding to your layout) and
    4. Check (add) the additional output formats you want your report to have.
    cheers
    Jorge

  • Bolding rows in RTF template using tags

    In an rtf template, is there a way to bold an entire row in the table using tags rather than building two rows (one bold, one unbold) and put them in a if condition?
    if
    [BOLD ROW]
    else
    [UNBOLD ROW]
    end if

    This should do it
    <?if@row:number(EMPNUM)=10003?>
    <?attribute@incontext:font-weight;'bold'?>
    <?end if?>
    slot this into a cell on the table row
    Tim

  • How to remove the extra or blank space from RTF Template

    Hi All,
    Try to remove the extra space from  xml template.
    Here I have attached the .xml file with .rdf, here the issue is when you load the data we will get 2 page output but when I am trying to add any column or extra space in the last page of this template the output getting 4 pages with lot of blank space. Could you please guide me to solve this issue.
    Could you please let me know how to do the attachement in this forum as I am new to this community.
    Regards,
    Sushant

    Can you drop in a mail with RTF, xml data to [email protected], I will help you on the issue.

  • Generate a Report in Excelsheet format using Oracle Reports

    Hello,
    I want to use Oracle Reports to generate a report and create an output file in Excel Format. Can I achieve this?
    If yes, how can I do it or what is the process for the same
    Regards
    Shivanand

    Hello,
    There are several solutions :
    1) http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_paptoexcel.htm
    2) http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/whatare/output/output_a_simpleexcel.htm
    Regards

Maybe you are looking for

  • Weird problem; image in iPhoto and library, but finder won't find?

    Okay, so I have 2 open issues, i believe both stemming from Aperture somehow. Long story short, Aperture made all of these referenced copies and placed them in a random folder on my HD. See thread here: http://discussions.apple.com/thread.jspa?thread

  • Unable to convert the service as an ALE logical system

    nHi to All.. I'm facing a problem in one scenario IDOC to RNIF. I got this problem "Unable to convert the sender service to an ALE logical system. In that Interface is working properly but the thing is Acknowledgement is showing error and when I was

  • How to Increase the number of string boxes?

    I have attached a VI in which the number of string boxes in "No:, Questions , Ok/not Ok, Remarks " are eight. Can any one help me by changing the number of String/ Numeric boxes from 8 to 50 in all the items? I am very new to labview and i got this V

  • Printing Multiple images on one sheet of paper ( Printer Package)

    I want to print multiple different images on one sheet of paper using PhotoShop 6 Printer Package, (operating system windows7 h/p)  I have figured out how to get multiple images of the same image on one sheet, but not two different images. I seen the

  • Pre-comp / pre-render workflow?

    I've just submitted a feature request at : http://www.apple.com/feedback/motion.html I wanted to find out if anyone has a workflow that works well for this. I have one but it can be tedious when working with complex animations. In AE we have the conc