US and Worldwide: +1 (866) 660-7555
+ Reply to Thread
Results 1 to 2 of 2

Thread: Web Service Data Source?

  1. #1
    Join Date
    Jun 2007
    Posts
    1

    Default Web Service Data Source?

    I'm evaluating Pentaho Report Designer 1.2.0 and I want to get my data from a web service which I have already written.

    However, I can't find a way to create this kind of data source connection.

    A brief explanation of how to do this would be greatly appreciated.

    Thanks in advance.

  2. #2
    Join Date
    Oct 2005
    Posts
    14

    Default

    Just implement a class that has a static method that returns a javax.swing.table.TableModel.

    Code:
    package org.someorganization.datasources;
    ...
    public class TestDataSource {
        public static TableModel createTestData() {
            ....
        }
    }
    It should reside in the classpath of the ReportDesigner (of course) in order to be found.

    In the ReportDesigner, right-click on "Data Sets" and choose "add custom data set".
    In the following dialog enter the full-qualified name of the class and the method name.
    In the example above this would be "org.someorganization.datasource.TestDataSourc e" as class name and "createTestData" as method name.

    The main task is to create an implementation of TableModel that accesses your web service.

    Hope this helps, if there are any further questions, don't bother to ask

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts