From the WebLogic Domain menu, select Web Services Test Web Service Click Test Web Service. Navigate to the Test Web Service page in Oracle Enterprise Manager. See steps 1-3

Using the Oracle Reports Web Service 19-9 finished27-May-2003 10:22:00finished timingInfo job serverQueues

19.3.1.5 runJob

The runJobString commandLine, Boolean synchronous operation runs a job to the Reports Server specified as part of the commandLine parameter. The valid parameters are: ■ commandLine: The complete command line syntax for submitting a job. For example: server=repserv report=test.rdf destype=file desname=output.pdf desformat=pdf userid=scotttigeroraDB ■ synchronous: A Boolean object to indicate if the job should be run synchronously. To view the runJob response:

1. Navigate to the Test Web Service page in Oracle Enterprise Manager. See steps 1-3

in Section 19.3.1, Using Oracle Enterprise Manager to Test RWWebService .

2. From the Operation drop-down list, select runJob.

The Test page displays the relevant parameter fields. 3. Enter the command line syntax arg0, whether the job should run synchronously TF, YN arg1.

4. Click Test Web Service.

The SOAP response is displayed in the Response tab. The following is a sample output of a runJob operation: ?xml version = 1.0 encoding = ISO-8859-1 standalone = yes? serverQueues job id=7 queueType=current nametest.rdfname typereporttype status code=1Waiting in the queuestatus ownerRWUserowner serverrepservserver destination desTypefiledesType desNameoutput.pdfdesName desFormatpdfdesFormat destination Note: Oracle Reports Web service does not return the job output or the actual report. Note: The command line parameter cannot include paramform=yes. You have to pass the actual values for the parameter as part of the commandLine argument. 19-10 Publishing Reports to the Web with Oracle Reports Services timingInfo queued27-May-2003 10:22:00queued started27-May-2003 10:22:00started finished27-May-2003 10:22:00finished timingInfo job serverQueues

19.4 Using RWWebServiceUtil to Test RWWebService

Oracle Reports installation provides a sample RWWebServiceUtil webservice testing utility class. This is available in ORACLE_HOMEreportsjlibrwrun.jar. RWWebServiceUtil can be used to test various operations supported by RWWebService. The following procedure outlines the necessary steps involved in using this utility: 1. Include rwrun.jar in the classpath. 2. Run RWWebServiceUtil as a normal java program as following: ORACLE_HOME\jdk\bin\java oracle.reports.rwclient.RWWebServiceUtil 3. It displays the following usage: -endpoint url of the webservice -method web service operation to invoke runJob,getJobInfo,getServerInfo,killJob,getAPIVersion Input Parameters for runJob -cmdline command line to be used while submitting the job -sync boolean value to specify if job should be submitted in synchronous manner or asynchronous manner Input Parameters for getJobInfo -server server to be used for processing the request -jobid jobid in numeric format -authid userpassword for authentication, if server is secure Input Parameters for getServerInfo -server server to be used for processing the request -authid authid for authentication, if server is secure Input Parameters for killJob -server server to be used for processing the request -jobid jobid in numeric format -authid authid for authentication, if server is secure 4. You can use this utility to submit jobs to reports server using the following command: ORACLE_HOME\jdk\bin\java oracle.reports.rwclient.RWWebServiceUtil -endpoint http:yourmachine:portreportsrwwebservice -method runjob -cmdline report=test.rdf desformat=pdf destype=file desname=tmpoutput.pdf server=ReportsServer -sync true 5. This submits the request to the server and returns a soap response in the following format: