How to get out of scheduled using web service api report

Hello

By using the api service report I can run the report query and get the result and save it in a file. But as I'm under the report directly I don't see report running history in BIP UI. (Or there is a way to do what I don't know.)

So I create a task report and the request for a change it and then call using the api planning service and it works properly gives me a return identification work and I see the history for a job at the BIP UI.

But I can't find a api that gives me the result of this work.

All of the suggestions.

I use eclipse, cfx to generate stubs, and it's a simple java program with access to the web service

Obtained, he works as below.

  1. Call scheduleReport on SchedulerService to schedule a report and get the scheduled_job_id.
  2. Call getAllScheduledReportHistory on SchedulerService using scheduled_job_id to get the work history that includes the work of the child created by the Scheduler for above child_job_id scheduled_job_id.
  3. Call getScheduledJobInfo on SchedulerService using child_job_id to check whether the job has finished if it is wait for a while, then try again until the work is either successful or failed. The api returns object JobDetails
  4. If the job is successful then check if xmlDataIsAviable for the above job details. If Yes, then call getXMLData on SchedulerService using child_job_id which gives a byte array, write this array of bytes on the disk using the java.io library
  5. Call getScheduledReportOutputInfo on SchedulerService using child_job_id for the information of reportOutput, which is a list of cases
    more than one output format is specified in the report definition to the bi pub. Scan the list for the output_id for the data to the desired output format.
  6. Call getDocumentData on SchedulerService using the output_id above, which gives an array of bytes of report data, and save it using the java.io library

If you want to avoid voting in step 3 you can configure a httpserver in bi publiher, which is basically a servlet url of a Web application deployed on a server

Select Server Name URL Default Delete
BiPubReportsWebApp http://hostname:PortName/webappnameWebApp/servleturi

and when planning the report in step 1, you can specify these options in the ScheduleRequest element

scheduleRequest.setNotificationServer (notificationHttpServerName) / /notificationHttpServerName = BiPubReportsWebApp

scheduleRequest.setNotifyHttpWhenFailed (true);

scheduleRequest.setNotifyHttpWhenSkipped (true);

scheduleRequest.setNotifyHttpWhenSuccess (true);

scheduleRequest.setNotifyHttpWhenWarning (true);

So when the work is done bi publisher will make a post to you request httpservlet with jobid, reporturl, jobstatus, so you can use this jobid (which corresponds to the id of child labour) to perform steps 4 and following

Another thing to note is step 6 gives the byte array return which may be huge in big reports and you can go outofmemeory in this case

(1) request to the server to save the xml data and output on the server and returns the path where these files have been saved by using downloadXMLData and downloadDocumentData to the SchedulerService, and then tokensize the string to get the last piece

(2) call downloadReportDataChunk of the report (in a loop) service to get the data for the xml data and the document into segments giving him the name of the file in step 1, a start index and chunksize

While (offset! = - 1) {}

LOG.debug ("Getting chunck number :->" + counter + "index :->" + beginIdx);

ReportDataChunk reportDataChunk = getReportDataChunks (tmpFileNameOnServer, beginIdx, util.chunkSize);

data = reportDataChunk.getReportDataChunk ();

output. Write (Data);

beginIdx = beginIdx + util.chunkSize;

offset = reportDataChunk.getReportDataOffset ();

counter ++;

}

public ReportDataChunk (String starts, int beginIdx, int size) getReportDataChunks survey com.oracle.xmlns.oxp.service.v2.reportservice.OperationFailedException_Exception,

{com Oracle.xmlns.OXP.service.v2.ReportService.AccessDeniedException_Exception}

ReportDataChunk reportDataChunk is getReportServicePort () .downloadReportDataChunk (starts, beginIdx, size, getUsername(), getPassword());.

Return reportDataChunk;

}

Note: when you schedule a report using schedulereport pub bi api back you a job id but matching so that it creates a Collard work with a different id that does the job and this childjobid is given when using the method of notification httpserver.

Tags: Business Intelligence

Similar Questions

  • How to get distinct records by using the ListAgg OBIEE report function?

    Hi all

    I get a correct result as mentioned below. But I don't see duplicates in my result here, in my example, I get duplicate for the name of the employee 'Pat '. So how to get Distinct values by using the LISTAGG function?

    Data set of sample with the Department and its employees

    Service employee

    ----------      ----------

    Marketing Michael

    Pat of marketing

    Pat of marketing

    Pat of marketing

    Purchase of Den

    Purchase of Alexander

    Purchase of Shelli

    Purchase of Sigal

    Guy of purchase

    Purchase of Karen

    Using the ListAgg function, we can convert it to:

    Employees of the Department

    -----------     -------------------------------------

    Marketing of Pat, Pat, Pat, Michael

    Purchase of Sigal, Shelli, Karen, Guy, Den, Alexander

    I tried a lot of things, but I'm not able to understand how exactly this can be achieved, if anyone has any idea or suggestions please do share, thanks in advance.

    After much research, I found the solution & I want to share what he finds very useful, we can create SQL logic in the Advanced tab, as below and after you click Rescan, and then you will get your desired results.

    SELECT saw_0, Evaluate_Aggr T1.dept ("ListAgg(%1,'' & '') intra group (about 1%)") ("as long as VarChar (1000), T1.emp) saw_1 FROM)

    SELECT 'emp_dept '. "the Department dept,

    'emp_dept '. "' employee ' emp

    IN THE "DOMAIN".

    GROUP BY dept, emp

    ) T1 GROUP FROM T1.dept ORDER BY saw_0

    Also note here that we have good anti-aliasing for columns parent (ex: saw_0, saw_1), another by mistake oracle bi server.

  • How to get the response from the web service

    Hello

    My requirement is necessary send the UI ADF input parameter and get web service respone. I created proxy WSDL-based methods. Now in my action button earpiece that I wrote the logic below.

    {} public void submitAction (ActionEvent actionEvent)
    Add the code in the event here...
    BigDecimal merNam = null;
    String number = this.it1.getValue (m:System.NET.SocketAddress.ToString ()); my entry value
    merNam = new BigDecimal (number);
    MV MerchantValidate = new MerchantValidate(); / / created by jdeveloper when proxy generation.
    mv.setMerchantNumber (merNam); / / the value input to the web service
    System.out.println ("merchant number is:" + mv.getMerchantNumber ());

    Mr. MerchantValidateResponse = new MerchantValidateResponse(); / / create object of response class
    String result = mr.getResult (); / / try to get the answer
    System.out.println ("result:" + result); / / I'm getting null as a result
    / * this.setResult (mr.getResult ());
    System.out.println ("the answer is:" + this.getResult ()); * /

    Can someone help how to pass values to the web service and get the response. And how can we get the Web service data control.

    It's very urgent pls help. I'm not for this technology.


    }

    Hello

    You can view the tutorial for a good understanding on creation and use of a Web Service data control:

    http://www.Oracle.com/technology/OBE/obe11jdev/11/wsdc/wsdc.htm#T1

    Thank you
    Vishal

  • How to get started with consuming java Web services from WSDL - JDeveloper 11.1.1.7

    Hi all

    I developed a SOAP based WebService (JAX - WS) for product information. I deployed on stand-alone Weblogic server and the resulting WSDL file generated.

    In the ADF, we totally 3 options to work with the WSDL file.

    1 web Service DataControl (which will directly create a DataControl to access services exposed by Web service through WSDL)

    2 web Service proxy. (A proxy for the Web service of the Fund and offers to the client to interact with the exposed services)

    3. Java Web Service WSDL.

    From these 3 options, I am aware of the first two options. But on the way to the 3rd point or Java Web Service from WSDL, I'm not in a position to know. in what scenario, we will use this service.

    Now I have created the java web services starting from the WSDL. After generating the files of the project structure is as below.

    Please let me know where to start to interact with my application services. (We must separate class DC or any other way to interact)

    otn.PNG

    Please let me know your inputs on this. valuable suggestions would be appreciated.


    Thank you and best regards,

    Miko Auntie.

    Hi all

    On top of the implementation class (ProductsSEIImpl.java), we have an option called create a Client for the Web Service Annotations.

    This is the right option to choose, so that the client Classes get generated pertaining to this service. Of the client class, we can access the services available?

    Please comment on this if I depart.

    Thank you best regards &,.

    Miko Auntie.

  • How to get out computer safemode?

    How to get out computer safemode, troubleshooting says to many programs open in the start menu

    Hi kristi,.

    First of all, to deal with the programs at startup, click on start / all programs / accessories / run and type msconfig.exe, and then enter.  Go to the Startup tab and uncheck everything what you don't need from start (most is not necessary, but simply useful, but if not checked periodically it can accumulate over time).  You need your antimalware program and virtually all the rest of the list is optional (but some may be required for your system, so be a little careful, but if you uncheck something you really need and find out later, you can always go back and check again isn't a big concern). This only in the start, for now tab.  Click OK when finished.

    Now, to go out to start in safe mode, while remaining in msconfig, go to the Startup tab and uncheck the box Mode safe if it is checked.  If this isn't the case, then what you deleted should if all goes well do the trick.  When I did that the first time, I have removed more than 90% of what was there and there was no effect on me whatsoever - and not only the startup and shutdown to happen more quickly, but my computer run faster while working as well and the Task Manager showed a dramatic drop in CPU utilization and memory.

    Restart now.

    When you first restart, you get a screen asking you how you want to start.  Choose the Normal Boot or Normal Mode or something like that, said like that (NOT Mode without failure or something).  You need to start normally and this should solve the problem.

    If this does not work, then come back and tell me your exact version of Windows (32-bit Vista Business SP2 - and Yes, much more in detail) and we will try a clean boot troubleshooting procedure to try to find the culprits causing the problem - but I hope it won't be necessary.

    I hope this helps.

    Good luck!

  • How to get out the mode safe mode with msconfig.

    I'm working on my computer and need to start in safe mode. I ran the msconfig and reboot the laptop. I get to the login screen, but when I get my username and password it tells me that the user name and password is not correct. How to get out the mode safe mode with msconfig.

    When you run msconfig to get set to Safe Mode, you just activate/check the option/SafeBoot at startup. INI tab or did you do something else?

    There is some malware that if you use the/SafeBoot option, you will not be able to use your system again until you remove the switch/SafeBoot the boot.ini for you can boot normally.

    Maybe it's not your exact problem, but I will never suggest to anyone to use the option / SafeBoot never again - too risky when troubleshooting since you can always start new or will never connect again until you remove the switch/SafeBoot.

    Anywho, if that's what you have done, you can start in the XP Recovery Console and then either make a new boot.ini file containing the switch/SafeBoot or simply rename the boot.ini file, you have something like boot.ini.old if you don't have a boot.ini file (I know it seems like a weird idea).

    In a single partition configuration, XP is not even a file boot.ini to boot.  XP will complain if there is no boot.ini file, but will always start very well without one (non-believers - try it!).

    After you get booted up and logged in, you can rename boot.ini.old in boot.ini and run msconfig to remove the option/SafeBoot, and never use it again.

  • How to get out of a loop of 2 different conditions

    Hello Experts

    I'm writing a procedure in which I take the PROVINCE as an input parameter. All provinces are stores in a table. I use a cursor variable and rowtype to control the province. After I find province I displays its code and province. Everything works very well wait for me if I can't find the province. I don't know how to get out of the loop, if I can't find the province. I already use the output when the condition. I was expecting another condition should function and must break out of the loop, but it doesn't. Can you please someone show me how to get out if I can't find the province in the table through the cursor.

    Here is my code

    Set serveroutput on
    variable G_TAX varchar2 (10)
    CREATE OR REPLACE PROCEDURE p_create (i_state VARCHAR2) is
    CURSOR cur_bb_tax is
    Select * from bb_tax;
    bb_tax_details bb_tax % rowtype;
    Start
    If it is cur_bb_tax % isopen then
    Open cur_bb_tax;
    end if;
    loop
    extract the cur_bb_tax in bb_tax_details;
    If (bb_tax_details.state = i_state) then
    dbms_output.put_line (bb_tax_details. State | bb_tax_details.idstate);
    end if;
    When the output bb_tax_details.state = i_state;
    end loop;
    close cur_bb_tax;

    exception
    while others then
    dbms_output.put_line (SQLERRM);
    end;

    Thanks in advance

    ....
    loop
    extract the cur_bb_tax in bb_tax_details;

    IF (cur_bb_tax%notfound) then  exit;END IF;
    

    If (bb_tax_details.state = i_state) then
    dbms_output.put_line (bb_tax_details. State | bb_tax_details.idstate);
    end if;
    ....

    SIM

  • I have a new laptop and I am a newbie on the laptop. I inserted a cd but now how to get out? Of course it is obvious on the desktop what do, but not on laptop.

    I have a new laptop and I am a newbie on the laptop. I inserted a cd but now how to get out? Of course it is obvious on the desktop what do, but not on laptop.

    Well, no, actually, I talked to someone at Microsoft and he discovered for me. The answer is the keyboard on the top right of my keyboard and the third button on the end. Worked like magic.     Thanks again!

  • I have a wireless optical mouse and I can't remove the usb of my laptop Gateway receiver. It is stuck there. How to get out?

    I have a wireless optical mouse and I can't remove the usb of my laptop Gateway receiver. It is stuck there. How to get out?

    Hello

    The unit just has USB slide out. If it is stuck, consult with a real computer store (the one that makes
    his own service in the House and not leeks and glances at a Best Buy or other stores) or gateway
    supported.

    Gateway drivers and downloads
    http://support.gateway.com/support/drivers/dlcenter.asp

    Technical support Gateway
    http://support.gateway.com/support/?cmpid=topNav

    Door Documents
    http://support.gateway.com/support/SUPINFO/index.asp?cmpid=topNav

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • I had a virus that says that the FBI caught me downloaded inlegal stuff a fine of 72 hours or there would be charges pressed against me and I don't know how it get out!

    I had a virus that says that the FBI caught me downloaded inlegal stuff a fine of 72 hours or there would be charges pressed against me and I don't know how it get out!  Whenever I turn on my computer it pops up and I can't do anything! Sometimes I can go and get online! If anyone knows how to remove it please help me!

    What you are investigating your pc with?  What anti virus?

    Some malware knows how to avoid the standard as applications McAffee, Norton and Kaspersky, Avast.

    To be absolutely sure, you may have to reset it to the factory or clean install.  Make sure that you have a backup first.

  • How to get out of the UiApplication?

    Hello!

    Can u tell me pls, how to get out of the UiApplication. The deactivate method is sufficient for this.

    PLS, suggest me-

    System.Exit (0). Or close the last screen and call the application itself.

    Disable does something different:
    public void deactivate()
    Handles finishing event.

    The system calls this method when sending of this request in the background. By default, this method does nothing. Override this method to perform additional when processing sent in the background.

  • cartridges won't come out, says paper jam, how to get out of cartridges without killing printer.?

    cartridges aren't coming out,

    says paper jam, no paper in the printer,

    How to get out the cartridges without killing printer.?

    I did the thing video together 3 times and still won't come out? I'll call hp remote and hope they can fix it thank you

  • How to get out with renaming a file every time that I change it?

    How to get out with renaming a file every time that I change it?

    Since the last update, I have more the possibility to combine files. How can I recover this feature

    10 pro version

    For the first issue: disable the preview pane in Windows Explorer.

    Wednesday, July 15, 2015 to 18:46, keithf52379832 [email protected]>

  • Got a legal question about the installation of Adobe Photoshop Elements.  How to get help from Adobe using a chat session?

    Got a legal question about the installation of Adobe Photoshop Elements.  How to get help from Adobe using a chat session?

    AdobeTomFaith

    If your program is Photoshop Elements, then you have posted in the wrong forum. Some how your son got posted in the Forum Adobe Premiere elements (video editing). Please re-post your thread in the Adobe Photoshop elements Forum.

    Photoshop Elements

    Wherever your son is, please include Adobe Photoshop Elements version and operating system and the description of the installation problem (error messages, stage of failure, etc.)

    Support Adobe seems to be limited to Adobe cat and is classically limited to the current version which is 13. Then, you the best avenue to success is likely to be through the Adobe Photoshop elements Forum. But that shouldn't stop you trying to determine what kind of support you can get from Adobe cat on your question.

    I would offer this link that is specific for Adobe Chat download and installation

    Contact the customer service (this is not the same destination as shown in a previous post in your thread)

    This link is specifically designed for

    Photoshop Elements

    Download, installation, setting up

    Download and installation

    Panel discussion

    (18:00 - Friday 7 pm Sunday)

    Thank you.

    RTA

  • Is there a way to re set Lightroom to the original settings, I've been playing with it and got somewhere that I don't know how to get out of... not particularly computer savvu

    Is there a way to re set Lightroom to the original settings, I was playing with it and has gotten, somewhere, I don't know how to get out of. Not very computer savvy

    For starters, stop Lightroom

    On Windows, do the following

    Click the Windows Start button and in the search box type: -.

    %AppData%\adobe\lightroom

    Then press Return\Enter

    This will take you to the folder Lightroom (see image below)

    Select the Preferences folder and click on delete to send it to the Recycle Bin.

    Close the Lightroom folder, and re-start the Lightroom program.

Maybe you are looking for