Using a Key with a Report Run as a JSP

Using the Oracle Reports Web Service 19-3 Figure 19–1 Viewing the WSDL Ensure that the URL and port number defined, http:yourwebserver:portreportsrwwebservice, is correct. Oracle Reports WSDL ?xml version=1.0 encoding=UTF-8? -- Published by JAX-WS RI at http:jax-ws.dev.java.net. RIs version is Oracle JAX-WS 2.1.4. -- -- Generated by JAX-WS RI at http:jax-ws.dev.java.net. RIs version is Oracle JAX-WS 2.1.4. -- definitions xmlns:soap=http:schemas.xmlsoap.orgwsdlsoap xmlns:tns=http:oracle.reportsrwclient xmlns:xsd=http:www.w3.org2001XMLSchema xmlns=http:schemas.xmlsoap.orgwsdl targetNamespace=http:oracle.reportsrwclient name=RWWebService types xsd:schema xsd:import namespace=http:oracle.reportsrwclient schemaLocation=http:localhost:8888reportsrwwebservice?xsd=1 xsd:schema types message name=getServerInfo part name=parameters element=tns:getServerInfo message message name=getServerInfoResponse part name=parameters element=tns:getServerInfoResponse message message name=getJobInfo part name=parameters element=tns:getJobInfo message message name=getJobInfoResponse part name=parameters element=tns:getJobInfoResponse message message name=getAPIVersion part name=parameters element=tns:getAPIVersion message message name=getAPIVersionResponse part name=parameters element=tns:getAPIVersionResponse message message name=killJob part name=parameters element=tns:killJob message message name=killJobResponse part name=parameters element=tns:killJobResponse message Note: The hostname specified should be the hostname where the Oracle WebLogic Server instance is running and not where the Reports Server is running. 19-4 Publishing Reports to the Web with Oracle Reports Services message name=runJob part name=parameters element=tns:runJob message message name=runJobResponse part name=parameters element=tns:runJobResponse message portType name=RWWebService operation name=getServerInfo input message=tns:getServerInfo output message=tns:getServerInfoResponse operation operation name=getJobInfo input message=tns:getJobInfo output message=tns:getJobInfoResponse operation operation name=getAPIVersion input message=tns:getAPIVersion output message=tns:getAPIVersionResponse operation operation name=killJob input message=tns:killJob output message=tns:killJobResponse operation operation name=runJob input message=tns:runJob output message=tns:runJobResponse operation portType binding name=RWWebServicePortBinding type=tns:RWWebService soap:binding transport=http:schemas.xmlsoap.orgsoaphttp style=document operation name=getServerInfo soap:operation soapAction= input soap:body use=literal input output soap:body use=literal output operation operation name=getJobInfo soap:operation soapAction= input soap:body use=literal input output soap:body use=literal output operation operation name=getAPIVersion soap:operation soapAction= input soap:body use=literal input output soap:body use=literal output operation operation name=killJob soap:operation soapAction= input Using the Oracle Reports Web Service 19-5 soap:body use=literal input output soap:body use=literal output operation operation name=runJob soap:operation soapAction= input soap:body use=literal input output soap:body use=literal output operation binding service name=RWWebService port name=RWWebServicePort binding=tns:RWWebServicePortBinding soap:address location=http:localhost:8888reportsrwwebservice port service definitions

19.3 Oracle Reports Web Service Operations

Oracle Reports exposes the RWWebService servlet as a Web service with its public interfaces and bindings defined and described using XML. These public interfaces and bindings are published across the network through the WSDL.

19.3.1 Using Oracle Enterprise Manager to Test RWWebService

To test the RWWebservice through Oracle Enterprise Manager, complete the following steps: 1. Log in to Oracle Enterprise Manager. 2. Navigate to your WebLogic Domain.

3. From the WebLogic Domain menu, select Web Services Test Web Service

The Test Web Service page is displayed. 4. Enter the URL of a WSDL and click Parse WSDL. 5. Select the webservice operation that you want to invoke. 6. Enter valid values in appropriate fields.

7. Click Test Web Service.

The Webservice Response is displayed.

8. In case you want to edit the values, click the Request tab and complete the step 6

and 7. The operations supported by the RWWebService endpoint are: ■ getAPIVersion ■ getServerInfo ■ getJobInfo ■ killJob