01.02.2013 Views

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

■ The Xerces 1.4.4 parser, xerces.jar.<br />

Installing and Using <strong>the</strong> Sample Proxy and Java Client<br />

Note: You must specify <strong>the</strong> location of <strong>the</strong> xmlparser in <strong>the</strong> system<br />

classpath. If you do not specify <strong>the</strong> location, <strong>the</strong> SOAP response<br />

will be displayed minus <strong>the</strong> symbols.<br />

5. Modify <strong>the</strong> RW<strong>Web</strong>ServiceTest.java <strong>to</strong> reflect your <strong>Reports</strong> Server name and<br />

<strong>the</strong> authid. For more information on constructing a Java client, refer <strong>to</strong><br />

Example 14–1.<br />

Note: The authid for non-secured <strong>Reports</strong> Server is null.<br />

6. Compile and run <strong>the</strong> RW<strong>Web</strong>ServiceTest.java file.<br />

7. Run <strong>the</strong> various operations using <strong>the</strong> sample Java client. For example, get <strong>the</strong> API<br />

Version (getAPIVersion), run a job(runJob), check <strong>the</strong> status of any job (getJobInfo),<br />

or get <strong>the</strong> <strong>Reports</strong> Server information (getServerInfo).<br />

Note: You can submit many jobs concurrently from multiple<br />

windows using <strong>the</strong> sample Java client.<br />

Example 14–1 illustrates <strong>the</strong> contents of <strong>the</strong> RW<strong>Web</strong>ServiceTest.java file.<br />

Example 14–1 RW<strong>Web</strong>ServiceTest.java<br />

/*<br />

* $Id: RW<strong>Web</strong>ServiceTest.java<br />

* @author Anil Sharma<br />

*<br />

* Copyright (c) <strong>Oracle</strong> Corporation 2003. All Rights Reserved<br />

*<br />

* FUNCTION<br />

* This is a sample class <strong>to</strong> demonstrate how <strong>the</strong> <strong>Oracle</strong> <strong>Reports</strong> <strong>Web</strong>Service<br />

* Proxy class(oracle.reports.rwclient.proxy.RW<strong>Web</strong>ServiceProxy) can be used<br />

* <strong>to</strong> invoke <strong>the</strong> <strong>Reports</strong> <strong>Web</strong>Service from Java Clients. Java based <strong>Reports</strong><br />

* Clients will use <strong>the</strong> demonstrated mechanism for invoking & parsing <strong>the</strong><br />

* results using<br />

*<br />

* NOTES<br />

* 'oracle.reports.rwclient.proxy.RW<strong>Web</strong>ServiceProxy' class is supplied as part<br />

* of rwwebservice.zip file which can be downloaded by invoking <strong>the</strong> <strong>Reports</strong><br />

* <strong>Web</strong>Service from a browser. Please consult Chapter 14 of <strong>Oracle</strong> Application<br />

Server <strong>Reports</strong> Services <strong>Publishing</strong> <strong>Reports</strong> <strong>to</strong> <strong>the</strong> <strong>Web</strong> manual, available on<br />

* <strong>the</strong> <strong>Oracle</strong> Technology Network <strong>Oracle</strong> <strong>Reports</strong> Documentation page<br />

* (http://otn.oracle.com/documentation/reports.html) for details.<br />

*<br />

* CREATED Anil Sharma 06/13/03<br />

*/<br />

import oracle.reports.rwclient.proxy.RW<strong>Web</strong>ServiceProxy;<br />

/**<br />

* This class creates an instance of RW<strong>Web</strong>ServiceProxy and makes API<br />

* calls on it <strong>to</strong> interact with <strong>Reports</strong> Server <strong>Web</strong>Service. The result from<br />

Using <strong>the</strong> <strong>Oracle</strong> <strong>Reports</strong> <strong>Web</strong> Service 14-9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!