Jump to content
Changes to the Jaspersoft community edition download ×

edxerx

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by edxerx

  1. thanks for the reply, I will try your solution a.s.a.p :)
  2. seems that in the end all I get is #: The AXIS engine could not find a target service to invoke! targetService is repository/ (SOAP::FaultError) btw my code is as below Code: I can connect but can't do anything :blink: , anyone got clues?
  3. I tried this and get the same error :pinch: rosisr wrote: Thanks a lot, you've been a great help!! But I still have some problems, when I try to run this: #!/bin/env ruby require 'soap/rpc/driver' strUser = 'jasperadmin' strPWD = 'jasperadmin' strServer = 'http://10.128.10.81/jasperserver/services/repository/' strOutputFormat = 'HTML' #JRPRINT, RTF, PDF, etc? strURI = '/reports/samples/Employees' strRequest = %Q{<?xml version="1.0" encoding="UTF-8"?> <request> <operation-name>runReport</operation-name> <resource-descriptor read-only="false" control-type="0" is-reference="false" is-new="false" strict-max="false" data-type="0" mandatory="false" has-data="false" strict-min="false" main-report="false" version="0"> <uri-string>#{strURI}</uri-string> </resource-descriptor> <arguments xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.Argument"> <name>RUN_OUTPUT_FORMAT</name> <value>#{strOutputFormat}</value> </arguments> </request> } driver = SOAP::RPC::Driver.new(strServer) driver.wiredump_dev = STDERR driver.options["protocol.http.basic_auth"] << [strServer, strUser, strPWD] driver.add_method('runReport','request') puts driver.runReport(strRequest) What I get is: <?xml version='1.0 'encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header /> <soapenv:Body><ns1:result xmlns:ns1="http://jasperserver/ws2/namespace1" xmlns:tns="http://ws.apache.org/axis2"><?xml version="1.0" encoding="UTF-8"?> <operation-result return-code="1"><version>1.1.0</version><message>unable to instantiate java.util.List; </message></operation-result></ns1:result></soapenv:Body></soapenv:Envelope> Any suggestion? :x Post edited by: edxerx, at: 2007/03/15 09:16
  4. im new to ireport too, just been digging it for 2 weeks :laugh: anyway on the parameter thing in ireport MENU->VIEW->PARAMETER add one parameter here's an example on what u should fill ---------------------------------- Parameter Name : ReportDate Parameter Class Type : java.lang.date Default Value Expression : "" (this is a default value if it's not given during run time) Is for prompting : YES ---------------------------------- Then in your sql just use something like this SELECT * FROM table WHERE field=$P{ReportDate}; hope this helps :)
×
×
  • Create New...