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

Similar Messages

  • Run Report with Pass Number and Varchar Lexical Parameter values

    Dear Sir/Madam
    Due to an urgent change required to a report I would most appreciate it if you can please advise me if it is possible to get this report working by either passing in multiple lexical parameters or one signle lexical parameter when calling the SRW.RUN_REPORT command with the following methods:
    Firstly: When calling report with a run_no and spr_cd passed in through one lexical:
    cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
    CP_L_PARAM=RUN_NO=TO_NUMBER(28) AND SPR_CD=SUPP1
    Both with a TO_NUMBER and without, whereby I attempt to do a SUBSTR within the query of the called report to derive the RUN_NO Oracle Reports fails to accept the SUBSTR.
    Secondly: I am now trying to call the with passing two lexical parameters into the report as follows:
    cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
    CP_L_RUN_NO=||TO_CHAR(lv_run_no)|| CP_L_SPR_CD=||lv_spr_cd;          
    NOTE: The above is an output of the actual command line and not what is passed into the command line, thus the quotes are missing. Please also note that the report is running fine with the only a hard coded RUN_NO value PASSED without the SPR_CD.
    Unfortunately this is also causing issues as the RUN_NO is a number and as you know you can only pass in strings.
    Your urgent help is required on this matter please as our client is expecting a solution this afternoon.
    Hope to hear form you soon.
    Kind regards
    Andrew Mason

    Dont Worry I've worked it out...

  • Help with Radio Group and Web Service

    Hi,
         I created a Radio Group with Dynamic Entry List (Web Service).  It seems my list keeps coming back empty.  I am on SP10. 
         When I deploy I get warnings that "Entry List is missing output fields mapping.  I think this is a warning only because I don't have my form connected to any other components.  I just want to see the radio group populated. I don't think this is the cause. 
    I see references out there to this "Dynamic List" not working until SP12?  Can anyone add some insight to what is wrong?  unsupported until later?
    Thanks!

    I created a new model and the new model works fine.  Something must be cached.

  • Trouble with xsd:any and web services

    I am trying to generate client code from a WSDL for a getter and setter for a chunk of XML.
    The getter:<s:element name="GetData">
      <s:complexType>
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="id" type="s:string"/>
        </s:sequence>
      </s:complexType>
    </s:element>
    <s:element name="GetDataResponse">
      <s:complexType>
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="GetDataResult">
            <s:complexType>
              <s:sequence>
                <s:any/>
              </s:sequence>
            </s:complexType>
          </s:element>
        </s:sequence>
      </s:complexType>
    </s:element>The setter:<s:element name="SetData">
      <s:complexType>
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="id" type="s:string"/>
          <s:element minOccurs="0" maxOccurs="1" name="data">
            <s:complexType>
              <s:sequence>
                <s:any/>
              </s:sequence>
            </s:complexType>
          </s:element>
        </s:sequence>
      </s:complexType>
    </s:element>
    <s:element name="SetDataResponse">
      <s:complexType/>
    </s:element>When we use the <autotype> and <clientgen> ant tasks to generate our web service client code from the WSDL, we're getting the following warnings:
    [autotype] Autotyping for wsdl http://xxx.xxx.xxx.xxx:8080/xxx/xxx.asmx?WSDL
    [autotype] WARNING: Unable to fully map ['http://xxx.xxx/xxx/xxx/2005/11/30']:GetDataResultAnonType using javax.xml.soap.SOAPElement
    [autotype] WARNING: Unable to fully map ['http://xxx.xxx/xxx/xxx/2005/11/30']:dataAnonType using javax.xml.soap.SOAPElement
    [autotype] WARNING: Unable to fully map ['http://xxx.xxx/xxx/xxx/2005/11/30']:SetData using javax.xml.soap.SOAPElement
    [autotype] WARNING: Unable to fully map ['http://xxx.xxx/xxx/xxx/2005/11/30']:GetDataResponse using javax.xml.soap.SOAPElementOur client code for the getData() call looks mostly correct. There's a GetData object created with an "id" field. Typically, I've seen that when the web service method calls are generated, it gives me two ways to call:
    - one that takes a bean (in this case, a GetData object)
    - one that takes the actual fields (in this case, just a String)
    Only the method that takes the bean is getting generated, but that's not a big deal.
    The client code for the setData() call, however, is all screwed up. There is no SetData bean object, and the only method call that gets generated takes just a SOAPElement, the "id" field is left completely out. Without any way to specify the id of the data I'm setting, the setData() method call is worthless.
    My first suspicion was that the Ant tasks did not know how to handle the <any> tag. But we're getting exactly what we want, a SOAPElement object returned in the getter and a SOAPElement to set in the setter. The problem is that it's leaving out the "id" string in the setter. I guess I'm having a hard time seeing why it's almost working.
    Anyone have any ideas? I almost feel like this could be a bug. Sorry for the long post.
    Tobin

    Hi!
    Did you ever solve this? I get similar warnings for our wsdl, and can't figure out if they are the kind I can ignore, or if they indicate that my code will go down the drain :).
    /JMK

  • Cfc component with readonly properties and web services

    I want to transfer a cfc component across coldfusion web
    services as a data transfer object. This cfc component is received
    when calling a load web service, and then supplied to an update web
    service. Some properties within the cfc need to be readonly since
    the update web service would ignore them.
    In java I would have my data transfer object with only public
    set methods for those properties which are not readonly. How can I
    achieve this in coldfusion?

    Hi,
    Please check note 1004108.
    Methods of Application and/or Entity Services (Business Objects) of CAF of SAP NetWeaver CE 7.1 cannot be exposed in document style, only RPC/literal is possible. Sorry.
    It's a restriction that is planned to be solved in one of the next releases.
    Regards,
       Jan

  • Problem running reports with graphics in 11i

    Hi,
    I have developed some custom reports (using
    Reports 6i) with graphics charts embedded within them. I would like to display the output from within Oracle Applications 11i.
    There seem to be two approaches:
    1. Invoke the report from Oracle Self-Service using OracleOasis.runReport
    2. Register the report as a concurrent request (with HTML/PDF output) and run it using the concurrent manager
    Approach 1 requires the reports server cgi which I start using adrepctl.sh. Approach 2 requires the concurrent manager which I start using adcmctl.sh.
    The problems start to occur depending on how and from where I start these scripts. The exact problem occurs in both cases.
    If these scripts are started:
    1. From a regular telnet window from a windows NT box
    The reports error out with a REP-3000 internal toolkit error
    2. From an Exceed xterm session and I keep the Exceed session alive (I tried both TrueColors and PseudoColors settings)
    The reports work but there are problems with the output - pie colors do not appear (everything is white, for e.g.), etc.
    3. From the Sun Solaris console
    The reports work fine.
    The problem is that method 3 is not very convenient since every time I bring down the concurrent manager or reports cgi server, I need to walk to a different building (where the Sun boxes are) to start it.
    Method 2 above isn't particularly great either (even assuming I can get it to work) since I need to have an exceed session running all the time.
    Can some one offer suggestions to solve the problem I'm having? Even clues on why method 2 above is not working as expected would be greatly appreciated.
    Thanks,
    - NR

    Problem solved! As long as the xhost + is set on the host machine and some one is logged in, it appears that one can simply set the DISPLAY environment variable to point to the host (even from a simple telnet window) and start the reports server or concurrent manager. Looks like you also have to have REPORTS60_NO_DUMMY_PRINTER set to "YES".

  • Problem after run report with spreadsheet

    hi evry one
    ther an a problem after run report with spreadsheet .
    after runing iexplorar open and close fast no thing else
    when i check the job from appserver job success with spreadsheet dis format.
    what shall i do.
    thanks.

    Hello,
    Do you use the Oracle Forms builtin WEB.SHOW_DOCUMENT ?
    If yes , take a look to : "IE7 windows opened and closed immediatly"
    http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Internet_Explorer/Q_23304982.html
    You can test the solution suggested :
    We have found the setting that we needed, under the Internet Options
    Security tab, if you select the internet zone, and click the custom level
    button, then scroll down to the Downloads section, the first option is
    Automatic prompting for file downloads, setting this to enable keeps IE 7
    from interfering with this sort of download.
    Regards
    Example with screen shots :
    http://www.celt.iastate.edu/webct/securitysettings.html
    Regards

  • Report published as web service with parameters

    Post Author: kevinzebeste
    CA Forum: Publishing
    hi,I have a problem in a report published as web service.indeed, the report has a parameter, a date.Client side I do this://I create the parameter             ParameterFields paramFields = new ParameterFields();            ParameterField paramField = new ParameterField();            ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();            paramField.Name = "date";            paramDiscreteValue.Value = "10/10/2006";            paramField.CurrentValues.Add(paramDiscreteValue);            paramFields.Add(paramField);//I add the parameter into the crVievwer            crystalReportViewer.ParameterFieldInfo = paramFields;//I call the web service to get data            crystalReportViewer.ReportSource = "http://localhost/WebService/Rapport1Service.asmx"; Server Side :Now, I want to get back the parameter in the web service (in Rapport1Service.asmx, so server-side) to be able to call my storedprocedure with the good parameter, this one which was put on the client side (10/10/2006).I tried to do crystalReportViewer.ReportSource = "http://localhost/WebService/Rapport1Service.asmx?date=22/10/2006" on the client side but no way. i don't find a solution, is there any way to make this possible ?Moreover, i have one database for each user, so i need to pass the user name, password and account too..

    Post Author: kevinzebeste
    CA Forum: Publishing
    I have found a solution.
    I  create a web service in which i return a dataset, filled with the data wanted.the web service take as parameter: the report name we want, the parameter(s), and the username and password (to check if the user has right to access to data.)After that, I fill the report, client side, with the datasen given. i don't know if it's the best solution but it works !

  • Running Reports with WEB.SHOW_DOCUMENT versus RUN_REPORT_OBJECT

    Where I work I work alone on developing and delivering Oracle applications. I've found a way of running reports in 10g over the web using WEB.SHOW_DOCUMENT, I've embedded my own security in the BEFORE PARAMETER FORM trigger of the reports.
    I don't have time to trawl through thousands of pages of documentation and I need to know whether there is a fundamental drawback of using WEB.SHOW_DOCUMENT over RUN_REPORT_OBJECT? I've got everything working OK in my test environment, but it's not clear reading the Oracle documentation whether there is a major drawback with this method, in particular I'm interested in any performance/load issues. I'm slightly worried because most people seem to use RUN_REPORT_OBJECT (which has all sorts of issues, such as parameter form incompatibility etc), I've found that WEB.SHOW_DOCUMENT is much easier to implement as it avoid the parameter form issue, displaying the user credentials in the source html and being able to type in any jobid in a url to receive other peoples reports.
    I've read as much as I can including the Forms and Reports integration document and the Usability Matrix and can't find anything obvious. I would be very grateful for any comments.

    Good call .... I included some of the code from your linked document to create a forms library from which to run reports. This uses the inate ability of reports to generate HTML parameter forms at runtime. Very handy. Most of our reports that we upgaded recently took little or no effort.
    Bradley

  • Problem opening reports with a user in the Oracle Directory.

    I have already followed all the steps in the user's guide to run reports with a user in the Oracle Directory.
    I accessed the enterprise security manager and created the mandatory xml publisher roles, besides I created another role. I added user A to the new role I created.
    I accessed then the administrator tab in XML publisher. I went to roles and the role I created was there. When I tried to add a folder. I'm able to add the folder there. I click on apply and then when I enter in the security Settings again the folder is not there anymore.
    I get the following error in the log:
    [021207_103218621][][EXCEPTION] oracle.apps.xdo.servlet.resources.ResourceNotFoundException: /opt/oracle/infra2/j2ee/home/xmlpublisher
    /Admin/Security/security.xml
    When I access xml publisher with the user A, who belongs to the new role I'm working with, I'm not able to see any folder, nor anything else.
    Do you have any ideas about what could be going wrong?
    Thanks,
    Joaquin

    Can you replay how? I have been facing this problem for nearly 3 months without any solution. Please help me.
    Debarati

  • XML and Web Service Data Source Missing in Crystal Reports for VS

    I would like to use a Web Service as the data source for a Crystal Report that will be running outside of my Visual Studio application.  So setting the data source to the web service in code is not possible.  My understanding is Crystal Reports has a connection (in the Database Expert under New Connection) named XML and Web Service.  Here you can select web service and enter the WSDL URL for the web service.  However it does not appear in the list for Crystal Reports for Visual Studio.  Does this connection type come with the Visual Studio version of Crystal Reports and if not is their a way to obtain it? 
    Thank you for your assistance.

    None of the bundled versions of CR have the driver. Reason is that the driver responsible for these connections requires the Java framework and I suspect MS would not be too pleased if we installed the Java framework. The stand alone versions, since they are not part of any bundle can and do install the Java framework and the driver. Note that even the latest release of CR - CRVS2010 does not have the driver as it essentially becomes a bundle or a VS2010 plug-in.
    So, the short of it is; you have to obtain a stand-alone version of CR. I'd recommend CR 2008 (12.x) as CRXI R2 will run out of support in June of this year.
    - Ludek

  • Business Objects Reports and Web Services for Dashboards

    Hello!
    I am writing a Business Object report against my Universe.  I save the report to the CMS and then right click on the report block and click "Publish as a Web Service...".  This opens up that diaglog and I am able to publish the web service.  I then can import the web service into Dashboards 4.1 (Xcelsius) and am working working to figure it out further at this point.
    My question is this:  When I go back to the report in Business Objects, and modify the report, I would like to republish the web service.  I click on Design and rework the report.  Run the report.  Save the report.  I right click on the report block and I don't see the "Publish as a Web Service..." choice.
    What am I doing wrong?
    Business Objects 4.1...
    Thank you.

    Hi Susan,
    Go to the web service publisher, expand the web service, select the block and select edit.
    Select the content and prompt and select Update.
    Regards,
    Abhilasha

  • Summary Report with 4 Dimensions and 5 Facts

    Hello OBIEE Czars:
    I have a problem.
    I am trying to make a summary report with 4 Dimensions and 5 Facts.
    Out of that only 2 Dimensions are Confirmed.
    Now when I try to bring in all the facts, I get view display error.
    I searched forum for similar issues.
    So I have tried following so far.
    1) Add other dimensions as source and set level to Total for those dims.
    - After doing this, I dont get view display error, but I get blank rows for couple of facts.
    2) I am already aggregating all the measures.
    Please help me out.
    This forum has been very helpful so far.
    Thanks.
    ~Vinay

    Hi
    This method seems fine until you run a request that includes a filter on an unconformed dimension.
    The SQL itself should be quite straightforward (see below) but the BI Server instance does not seem to be joining this data correctly after posting the 2 separate queries to the database.
    SELECT
    x.dim1, x.dim2
    x.fact1_agg_measure
    y.fact2_agg_measure
    FROM
    SELECT
    dim1, dim2
    SUM(fact1.measure) fact1_agg_measure
    FROM
    dim1,
    dim2, --UNCONFORMED+
    fact1
    WHERE
    .... .... join fact1 to dimensions as normal
    AND dim2 = 'BUSINESS_IDENTFIER'
    GROUP BY
    dim1, dim2
    ) x,
    SELECT
    dim1
    SUM(fact2.measure) fact2_agg_measure
    FROM
    dim1,
    fact2
    WHERE
    .... .... join fact2 to dimensions as normal
    GROUP BY
    dim1
    ) y
    WHERE
    x.dim1 = y.dim1
    The result set returned in Answers is firstly a correctly aggregated record plus ALL rows from the second query above ??
    Just wondering if anyone else has come across this issue?
    cheers
    Tony

  • Can't run wiki and web services at the same time?

    I'm a newbie with Lion Server, but I've been running several web sites successfully for about 6 months.  I'm up to Server 10.7.4.
    I've been trying ever since the first installation of Server to get the wiki service running.  I had absolutely no luck until I turned OFF the web service (always got the "URL does not exist" error when I tried to create a group wiki from inside the Server app).  With the web service off, it all starts up fine and I created my first wiki (woohoo).  Turning web service back on kills access to the wiki.  I don't find reference to this in any of the dicussions, and especially not in Apple's documentation.
    Are the Wiki and Web services mutually exclusive?  Or is there a way around this?
    I'm using Dyndns to provide me with sub-domains to use, and I've dedicated one of them to the wiki service.  Traffic comes in on port 8080, where my web sites are on port 80.
    Thanks for any pointers...
    edbok

    LR supports tethering using a Canon DLL and EOS Utility probably also supports tethering or at least uses something from a similar Canon DLL.  You probably cannot have two different versions of that DLL loaded at the same time, so it makes sense there are problems.

  • Problem running reports

    I finally configured and was able to start the reports server on my Solaris box. The listener is running. When I run a report, either by command line using rwrun60 or from a form using RUN_REPORT_PRODUCT, the report kicks off without error but will not finish. I have to kill the process, and no output results. I had no problems when running from NT, so I'd bet the problem is in the configuration not the report itself. Any ideas?

    I'm still working this problem.
    I have a printer configured, and have no problem generating report in character mode and send directly to printer.
    I did have to add localhost access to Xwindows with
    $ xhost +localhost
    Now I have valid display value.
    Unfortunately, still having the same problem. rwrun60 kicks off, but gets hung. I have no problems running forms on the this server. Any other ideas?

Maybe you are looking for

  • Hiding non-working time in Team Planner View

    Hello there.  The tasks in my project are typically between 2-5 hours over a week period.  In Team Planner View, I'm hoping to provide a better representation of free time between tasks by making my bottom tier hours in a 4 hour count.  However, decr

  • SAP CRM SERVICE IC WEBCLIENT E-MAIL RESPONSE SYSTEM

    Hi I am new to WEBIC.  I am in CRM SERVICE.  I want to generate a E-mail to send to the customer automatically with respect to the SLA(Service Level Agreement).  With respect to the time delay from Service Ticket(Incident Registration).  If the delay

  • Mac Mini (Intel) Ticking/Clicking Sound

    I purchased a new Mac Mini (1.8, 80gb, 1gb, superdrive) about a week ago, and have enjoyed using it ever since, however I recently there is a ticking or clicking sound coming from the unit which sounds to me like it may be the hard disk either starti

  • Granting permissions to manage my sites site collections and user profiles

    We currently have no governance in place to deal with user profiles and my site site collections. So the farm has quite a large number of both profiles and site collections which are orphaned. We do not currently run the timer job that deletes my sit

  • I've run out of ideas to fix this....

    Alright, so here's my problem: I installed the updates and had the (what seems like) typical major problems. My computer kept freezing up, my ipod freezes up, and itunes doesn't see my ipod. (My computer does see the ipod, and the software updater wi