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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sending a Request <strong>to</strong> <strong>the</strong> URL Engine<br />

http://your_webserver.domain_<br />

name:port/alias/rwservlet?report=myreport.rdf&userid=username/password@my_<br />

db&server=server_name&desformat=html&destype=cache<br />

If you require additional command line options, <strong>the</strong>n refer <strong>to</strong> Command Line<br />

Options for a list of valid rwclient command line options.<br />

■ Simplified URL request using key mapping, for example:<br />

http://your_webserver.domain_name:port/alias/rwservlet?key1<br />

13.6 Sending a Request <strong>to</strong> <strong>the</strong> URL Engine<br />

If you have activated <strong>the</strong> <strong>Reports</strong> Server’s URL engine, you can send job requests <strong>to</strong><br />

<strong>the</strong> URL engine by using <strong>the</strong> following command line options:<br />

■ urlParameter identifies <strong>the</strong> URL <strong>to</strong> be placed in <strong>the</strong> cache. For example,<br />

http://www.oracle.com or a JSP report.<br />

■ jobType is <strong>the</strong> name of a job type (e.g., urlEngine) in <strong>the</strong> server configuration<br />

file that is associated with a URL engine.<br />

Note: For information on activating <strong>the</strong> URL engine, refer <strong>to</strong><br />

Configuring <strong>Oracle</strong>AS <strong>Reports</strong> Services.<br />

For example, a request that specifies an external URL for urlParameter might look<br />

like <strong>the</strong> following:<br />

http://your_<br />

webserver:portnum/reports/rwservlet?server=<strong>Reports</strong>Server+jobType=urlEngine+urlPara<br />

meter="http://www.oracle.com"+destype=mail+desname=foo@bar.com+desformat=htmlcss<br />

Alternatively, a request that specifies a JSP report for urlParameter would look like<br />

<strong>the</strong> following:<br />

http://your_<br />

webserver:portnum/reports/rwservlet?server=<strong>Reports</strong>Server+jobType=rwurl+destype=cac<br />

he+urlParameter="http%3A%2F%2Flocalhost%2Ffoo.jsp%3Fuserid%3Dscott%2Ftiger@oraDB%3<br />

Fserver%3DreportsServer"<br />

Note: If <strong>the</strong> URL has special characters, <strong>the</strong>y must be encoded as<br />

per <strong>the</strong> x-www-form-urlencoded format.<br />

13.7 Running <strong>Reports</strong> through a <strong>Web</strong> Service<br />

In many cases, reports are integrated components of some larger application ra<strong>the</strong>r a<br />

stand alone application <strong>the</strong>mselves. Hence, it can be useful <strong>to</strong> generate report requests<br />

from within an application. We accomplish this goal by exposing <strong>Oracle</strong>AS <strong>Reports</strong><br />

Services as a <strong>Web</strong> service. This <strong>Web</strong> service may <strong>the</strong>n be called from within any <strong>Web</strong><br />

service aware environment (e.g., a Java application). For example, suppose that you<br />

have a Java-based expense reporting form and you want <strong>to</strong> allow users <strong>to</strong> generate a<br />

PDF version of <strong>the</strong>ir expense reports from it each time that <strong>the</strong>y complete an expense<br />

form in your system. By creating a Java proxy <strong>Oracle</strong> <strong>Reports</strong> <strong>Web</strong> Service, you could<br />

<strong>the</strong>n easily reference it from your Java development environment (e.g., <strong>Oracle</strong><br />

JDeveloper) and add a but<strong>to</strong>n that invokes <strong>Oracle</strong>AS <strong>Reports</strong> Services <strong>to</strong> generate <strong>the</strong><br />

PDF file.<br />

13-16 <strong>Oracle</strong> Application Server <strong>Reports</strong> Services <strong>Publishing</strong> <strong>Reports</strong> <strong>to</strong> <strong>the</strong> <strong>Web</strong>

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

Saved successfully!

Ooh no, something went wrong!