How to integrate Oracle BI Publisher via Web Services in Oracle Forms.

hi
I hope you fine and happy. I think you hear about the new reporting tool (Oracle BI Publisher).
Really it is a great tool. I need someone help me; How I can integrate Oracle BI Publisher via Web Services in Oracle Forms.
I got the guidelines of this integration process from ORACLE.
But, when I compile the script of publicreportserviceclient.callRunReport - the script running the report -, I get some errors in PL/SQL compiler
http://www.oracle.com/technology/products/xml-publisher/index.html

==========================
PL/SQL CODE:
==========================
DECLARE
     RAISEDEXCEPTION ORA_JAVA.JOBJECT;
REPORT_PATH VARCHAR2(200);
PARAM_NAME VARCHAR2(200);
PARAM_VALUE VARCHAR2(200);
UN VARCHAR2(200);
PW VARCHAR2(200);
FORMAT VARCHAR2(200);
TEMPLATE VARCHAR2(200);
OUT_FILE VARCHAR2(200);
OBJ ORA_JAVA.JOBJECT;
BEGIN
OBJ := PUBLICREPORTSERVICECLIENT.NEW();
REPORT_PATH := '/LEARN/EMPLOYEES/EMPLOYEES.XDO';
PARAM_NAME := 'P_DEPTNO';
PARAM_VALUE := '50';
UN := 'Administrator';
PW := 'Administrator';
FORMAT := 'PDF';
TEMPLATE := 'Simple';
OUT_FILE := 'C:\DevSuiteHome_1\j2ee\home\default-web-app\' || 'TEST';
--PUBLICREPORTSERVICECLIENT.CALLRUNREPORT(OBJ,:REPORT_PATH,PARAM_NAME,:PARAM_VALUE,UN,PW,:FORMAT,:TEMPLATE,OUT_FILE);
PublicReportServiceClient.callRunReport( REPORT_PATH,
PARAM_NAME,
PARAM_VALUE,
UN,
PW,
FORMAT,
TEMPLATE,
OUT_FILE);
WEB.SHOW_DOCUMENT('HTTP://127.0.0.1:8889/j2ee/' || 'TEST');
END;
==========================
JAVA CODE FOR callRunReport FUNCTION:
==========================
public void callRunReport (String reportPath, String[] paramName, String[] paramValue, String
username, String password, String format, String template, String outFile)
try {
bip_webservice.proxy.PublicReportServiceClient myPort =
new bip_webservice.proxy.PublicReportServiceClient();
// Calling runReport
ReportRequest repRequest = new ReportRequest();
repRequest.setReportAbsolutePath(reportPath);
repRequest.setAttributeTemplate(template);
repRequest.setAttributeFormat(format);
repRequest.setAttributeLocale("en-US");
repRequest.setSizeOfDataChunkDownload(-1);
if (paramName != null)
ParamNameValue[] paramNameValue = new ParamNameValue[paramName.length];
String[] values = null;
for (int i=0; i<paramName.length; i++)
paramNameValue[i] = new ParamNameValue();
paramNameValue.setName(paramName[i]);
values = new String[1];
values[0] = paramValue[i];
paramNameValue[i].setValues(values);
repRequest.setParameterNameValues(paramNameValue);
else
repRequest.setParameterNameValues(null);
ReportResponse repResponse = new ReportResponse();
repResponse = myPort.runReport(repRequest,username,password);
byte[] baReport = repResponse.getReportBytes();
FileOutputStream fio = new FileOutputStream(outFile);
fio.write(baReport);
fio.close();
} catch (Exception ex) {
ex.printStackTrace();

Similar Messages

  • How to integrate Microsoft and SAP using Web Services?

    Hi All
    How to integrate Microsoft and SAP using Web Services? If any one has document please send it to me. My id is [email protected]... Please
    Help me
    Best Regards
    Ravi Shankar

    Hi Ravi,
    This is for Customizing Email and Other Web Services.
    Create addresses
    The address maintenance of R/3 users is carried out either via the R/3 User Maintenance (Transaction SU01) or the Private office settings (Transaction SO12):
    Address --> Other communication...
    Selection of the required communication service.
    Enter address.
    Copy or save.
    b) Configuration of SAPconnect (Transaction SCOT)
    Set communication method
    4.0 + 4.5: Goto --> Customizing --> Communication methods
    as of 4.6: Settings --> Communication methods
    Set the method of the required communication service to the value 'SAPCONNECT' and save the setting.
    Customized the same for Internet mailing.
    C) If you want to Transfer Table Structure Values from SAP R/3 to Web Services then
           1. Create BAPI and Transfer whichever things you want.(Note: The Structure
               of BAPI should be similar to Web Structure (Datatypes).
           2. Create a BDC and Schedule it in the Background.
    Hope it helps you, Awaiting for the Reward Points.
    Thanks
    Subrato Chowdhury

  • Q: How to expose EEWB custom enhancements via Web Service Tool

    How do you expose custom enhancements so that when Selecting Attributes (step 2) of web service tool, you will be able view your custom enhancements?  We are able to see the our enhancements via GENIL_MODEL_BROWSER.  However, the enhancements are not carried forward to the Web Service Tool, any pointer or help would be rewarded with points.

    Hi Michael,
    I have a similar requirement, just wanna know how did you solved this?
    Could you please share your solution?
    Thanks...
    //Abhishek

  • How to add "Prepare Data" from a web service to the form

    Hello,
    Can any one please advise on how to add the "Prepare Data" process from the existing web service and have the form to pre-populate the data from this "Prepare Data" process instead of using schema xsd. I heard that this is an alternative or may be a better way to pre-populate data in ES2/ES3 to avoiding creating a data source in Form Designer. I try to find a sample on Adobe site but could not find one, most of them are using schema.
    Any guidance or URL to the sample would be helpful.
    Thanks,
    HD

    Thanks

  • Problem running report with BI Publisher and Web Service

    Hello,
    I actually try to run a Bi Publisher report via the Web Service.
    I use the following documents:
    - http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm
    - "How to integrate Oracle BI Publisher via Web Services in Oracke Forms"
    Everything works fine. But when I try to copy it on local computer the file is 0 length. I use the "getReportBytes" method.
    Here is the code I tried with:
    String userName = “Administrator”;
    String passWord = “Administrator”;
    System.out.println(”calling ” + myPort.getEndpoint());
    System.out.println(myPort.validateLogin(userName,passWord));
    ReportRequest repReq = new ReportRequest();
    ReportResponse repRes = new ReportResponse();
    repReq.setAttributeFormat(”pdf”);
    repReq.setAttributeLocale(”en-US”);
    repReq.setAttributeTemplate(”World Sales”);
    repReq.setReportAbsolutePath(”/Sales Manager/World Sales/World Sales.xdo”);
    repRes = myPort.runReport(repReq,userName,passWord);
    System.out.println(repRes.getReportContentType());
    byte[] binaryBytes = repRes.getReportBytes();
    OutputStream out = new FileOutputStream(”D:
    out.pdf”);
    out.write(binaryBytes);
    out.close();
    System.out.println(”Success for Run Report”);
    Thanks in advance.

    Hi,
    I assume that you use 10.1.3.4. If not, my hint is not relevant for you ....
    There's a new parameter in the web service API to set the Chunk-Size. Unfortunaltely is the default value not so, that the behaviour is like in older releases (no chunk-size ... the whole document at once). If you set the chunk size to -1, you should get your document. So try to add
    repRequest.setSizeOfDataChunkDownload(-1);
    regards
    Rainer

  • How to integrate Oracle Right Now with our application Calling Button and Chat Button  Application is on WebCenter  Sites

    How to integrate Oracle Right Now with our application Calling Button and Chat Button. Application is on WebCenter  Sites

    Thanks handar. As per your instructions I have tried OAM authorization policy and its working fine. But we also wants to check the same with OES also. Currently I have configure weblogic SM and created domain. In same domain I have deployed my application also. I have created application, resources and authorization policy to authorize /myfolder/index.jsp if user has some specific role. Now if I try to access my web application using http://host:8001/CONTEXT/myfolder/index.jsp, it doesn't check if user is authorized or not. I guess my application is not related to the resource I have created. Please help me with this. Also, let me know if we can retirive logged in user from session and use for authorization.

  • How to download a file via web service in Windows Phone 8.1?

    My project just got 2 part.
    1.Pivot app
    2.Webclient server (provide data for pivot app the view the data)
    My concert that how do i do a download button to download a file via web services in to isolated storage.
    urgent!

    something like this:
    public async System.Threading.Tasks.Task DownloadFile()
    using (var client = new Windows.Web.Http.HttpClient())
    var stream = await client.GetInputStreamAsync(new System.Uri("http://urltomyfile"));
    var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("myfile.txt", CreationCollisionOption.GenerateUniqueName);
    using (var fileStream = await file.OpenAsync(FileAccessMode.ReadWrite))
    IBuffer buffer = new Windows.Storage.Streams.Buffer(1024);
    while ((buffer = await stream.ReadAsync(buffer, buffer.Capacity, InputStreamOptions.None)).Length > 0)
    await fileStream.WriteAsync(buffer);
    await fileStream.FlushAsync();
    how is your webservices offering the file?
    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

  • How to start a process via web service with automatically run first screen

    Hi guys,
    we want to start the process via web service and skip the inbox presentation of the first human activity of the process. It means that the first activity should start automatically by clicking the link (wsdl link).
    Is there any opportunity to realize this thought?
    THX
    Regrads
    Phil

    Hi Phil,
    You may refer to my blog series for steop by step procedure on how to initiate a BPM workflow through webservice. Below are the links:
    /people/arafat.farooqui/blog/2009/08/13/introduction-to-sap-netweaver-bpm-part-4
    /people/arafat.farooqui/blog/2010/06/23/introduction-to-sap-netweaver-bpm-part-5
    Hope this helps!!
    Regards,
    Arafat

  • How to integrate Oracle Ebs to FDQM to load the data to Essbase

    Hi Experts,
    I need a document regarding how to integrate Oracle EBS to FDQM.I am taking target as Essbase.I know how to integrate to HFM and loading the data to HFM.So please share me the document like How to get source file from E-Buisiness suite to load into Essbase.Pleaae share with an example
    Thanks in advance

    The following link:
    http://docs.oracle.com/cd/E24674_01/epm.1112/fdm_adapter_readmes/es_g4_h_target_adapter_readme.html
    You need to configure the target dimensions of Essbase within the Essbase adapter of FDQM.
    For source integration of EBS, you have two options:
    1. Use Oracle ERPI (ERP Integrator)
    2. Make a custom data pump import script in FDQM to retrieve data from EBS database

  • How could I synchronize databases via web services

    I have two web sites. The first has been build in jsp. The second has been build in php. Each of these sites has database mysql.
    I have managed to communicate these two web sites via web services.
    I would like someone to tell me how could I syncronize these two databases via web services. There is something specific procedure?
    Thanks in advance, sorry for my bad English

    If you can explain us what you actually looking for, then I can extend my help.As we are also using websites in jsp which is having DB connections.
    Cheers
    Rajesh R

  • How to integrate Oracle DB in VB application

    Hello Everybody,
    I am working in Oracle as well as in VB6, now I am facing the problem that I am preparing VB set-up using Package & Deplo. Wizard. Now, the real problem is faced by me that how to integrate Oracle DB in that Set-up. If anybody wants to contact me personally then they can contact on my mail id. Regards.
    Thanks in advance.
    Paresh Rathod.
    From eCN India.

    use ODBC and ADO. Visual Studio packager has an ability to include ODBC settings, i think, if you define Option Explicit (if i am not wrong, long time no code writing in VB6)

  • How to Integrate Oracle Ebusiness suite to FDQM to load into Essbase

    Hi Experts,
    I need a document regarding how to integrate Oracle EBS to FDQM.I am taking target as Essbase.I know how to integrate to HFM and loading the data to HFM.So please share me the document like How to get source file from E-Buisiness suite to load into Essbase.Pleaae share with an example
    Thanks in advance

    Hi;
    How to install Oracle Ebusiness suite R12.1.3 on RAC environmentsCheck below thread's mention note advice
    Rrac-EBS wiht asm
    Re: RAC for EBS R12
    rac-r12-ebs-asm
    Re: EBS R12 with RAC and ASM on AIX 5.3
    RAC-R11-R12
    Upgrade the 11.5.10.2 Instance with 10gRAC setup
    How to implement shared appl top Shared appltop in R12
    Shared appltop in R12
    How to configure https for Oracle Ebusiness Suite R12.1.3Enabling SSL in Release 12 [ID 376700.1]
    Enabling SSL with Oracle Application Server 10g and the E-Business Suite [ID 340178.1]
    Also see*Steven Chan's blog entery*:
    http://blogs.oracle.com/stevenChan/2009/08/ssl_advanced_configuration_wizard_ebs12.html
    Regard
    Helios

  • How to integrate Oracle mapviewer

    Good Morning
    How to integrate Oracle mapviewer or Oracle Maps in my php or jsp page in order to show the map that is on my computer database
    thank you

    sorry i have find answer you can show examples in mvdemo example .

  • How to Integrate Oracle XE [ APEX ] & Adobe Flex

    How to Integrate Oracle XE [ APEX ] & Adobe Flex
    Just recently, I upload a quick screencast where shows how to integrate Ruby on Rails applications and Adobe Flex using http services <br>
    <param name=”movie” value=”http://www.youtube.com/v/IdM_rgDaVM0&rel=1”></param><param name=”wmode” value=”transparent”></param>
    This should be possible with Oracle APEX. I wonder if somebody have some ideas of a quick and easy export to generate the XML accessors for the Oracle XE instead of a htp.p PL/SQL Procedure ???
    The frontend with Flex will be the same, I just like to be able to automatically generate the XML version of the results, perhaps will be necesary some PL/SQL... applied to the end result of the query.
    Best Regards Dino.

    If it's raw XML output from APEX, how about a RSS feed as an example?
    C.

  • How to Integrate Oracle Apps with BPEL

    hi
    How to Integrate Oracle Apps with Fusion Middleware(BPEL) ?
    Please Provide me steps:
    Regards,
    Khushal

    hi,
    There is an adapter thats being provided with the standard adapter set with SOA installation . There are several ways of integrating with Oracle Apps . The adapter has all the options listed out.
    Regards,
    Ajay

Maybe you are looking for

  • How to get a hard copy of a form designed in SAP SCRIPT

    I designed a form in SAPSCRIPT . I verifed the o/p in the Print preview method using the printer LP01. I would get a hard copy of the same, So Can someone help me with the following. 1. How to configure a printer in SAP or Check the exisitng ones . 2

  • Saving Docs/Media in seperate dir (instead of within iWeb) recommendations?

    Hey ya'll, Restructuring a bloated domain.sites2 package because so much content has been saved within it. What I did was a create a top level dir called downloads/ and transferred all large downloads in to it and then pointed the iWeb pages accordin

  • Importing images in Word file

    Hi, after importing a Word doc into RH7 most images are correctly displaying in their topics but some just show a placeholder and filename of a .png image. This means presumably that png images are not supported by the Word conversion routine. I have

  • A stupid question

    As you can probably tell by me posting this question, I don't use terminal very often. I am playing around with settings for the proxy server and found that I don't particularly know what I am doing. My simple question is this: I am executing the fol

  • Infotype Creation - FM   HR_INFOTYPE_OPERATION

    How do everyone, I am using the FM  HR_INFOTYPE_OPERATION to create a recurring payment infotype. Everything is working fine. However, when the infotype is created it is created against the master cost centre. This is ok for some people but not all.