jasper-client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +19 -1
- data/VERSION +1 -1
- data/lib/jasper-client/jasper_client.rb +16 -3
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -41,6 +41,13 @@ telling builder what to construct.
|
|
41
41
|
|
42
42
|
== Example list request
|
43
43
|
|
44
|
+
The list request retrieves information about a folders contents on the
|
45
|
+
jasper server. The jasper server organizes resources (reports, controls, queries
|
46
|
+
files, etc) in a folder hierarchy similar to the way modern computers manage
|
47
|
+
files.
|
48
|
+
|
49
|
+
A list request fetches the contents of a folder on the server.
|
50
|
+
|
44
51
|
A typical request might looks look like the following:
|
45
52
|
|
46
53
|
client = JasperClient::RepositoryService.new(wsdl, user, pass)
|
@@ -55,18 +62,29 @@ A typical request might looks look like the following:
|
|
55
62
|
|
56
63
|
For more information see JasperClient::RepositoryService::Response::ListResponse.
|
57
64
|
|
65
|
+
response.each do |entry|
|
66
|
+
puts entry.name
|
67
|
+
end
|
68
|
+
|
58
69
|
== Example get request
|
59
70
|
|
71
|
+
A get request retrieves full information about a resource on the server. This example fetches
|
72
|
+
information about a report called user_list, though any resource type can be retuned with a
|
73
|
+
get.
|
74
|
+
|
60
75
|
response = client.get do |req|
|
61
|
-
req.resourceDescriptor :name => 'jrlogo', :wsType => '
|
76
|
+
req.resourceDescriptor :name => 'jrlogo', :wsType => 'report', :uriString => '/Reports/xforty/user_list', :isNew => 'false'
|
62
77
|
end
|
63
78
|
|
64
79
|
puts "Is successful: #{response.success?}"
|
65
80
|
|
66
81
|
For more information see JasperClient::RepositoryService::Response::GetResponse.
|
67
82
|
|
83
|
+
|
68
84
|
== Example runReport request
|
69
85
|
|
86
|
+
The runReport request produces report output in the desired format.
|
87
|
+
|
70
88
|
response = client.run_report do |req|
|
71
89
|
req.argument 'HTML', :name => 'RUN_OUTPUT_FORMAT'
|
72
90
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -18,7 +18,7 @@ module JasperClient
|
|
18
18
|
@uri_string = soap['uriString']
|
19
19
|
@label = soap.search('./label/node()').inner_text
|
20
20
|
@description = soap.search('./description/node()').inner_text
|
21
|
-
@
|
21
|
+
@creation_date = soap.search('./creation_date/node()').inner_text
|
22
22
|
|
23
23
|
initialize_properties soap.search('./resourceProperty')
|
24
24
|
initialize_resources soap.search('./resourceDescriptor')
|
@@ -52,7 +52,7 @@ module JasperClient
|
|
52
52
|
|
53
53
|
# Set this to true if you'd like to have Savon log to stderr
|
54
54
|
::Savon::Request.log = false;
|
55
|
-
|
55
|
+
|
56
56
|
# Request XML is built using the Request.
|
57
57
|
#
|
58
58
|
# A request looks like:
|
@@ -85,7 +85,20 @@ module JasperClient
|
|
85
85
|
# tags in this case).
|
86
86
|
class Request
|
87
87
|
attr_reader :name
|
88
|
-
|
88
|
+
|
89
|
+
##
|
90
|
+
# :method: list
|
91
|
+
#
|
92
|
+
#
|
93
|
+
# Retrive a list
|
94
|
+
|
95
|
+
##
|
96
|
+
# :method: get
|
97
|
+
#
|
98
|
+
|
99
|
+
##
|
100
|
+
# :method: runReport
|
101
|
+
|
89
102
|
# Create a new Request. The name passed is the
|
90
103
|
# request name (eg list, get, runReport).
|
91
104
|
def initialize(name)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Andrew Libby
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-11-03 00:00:00 -04:00
|
18
18
|
default_executable: walker
|
19
19
|
dependencies: []
|
20
20
|
|