BackPrevious Page Next PageNext

Setting Up a Web Service Connection

To set up a web service connection to connect a JReport catalog to a web service data source, follow the steps below:

  1. Create a catalog or open a catalog.
  2. In the Catalog Manager, right-click the node of a data source and choose New SOAP Web Services Connection from the shortcut menu.

    If you want to set up the connection in a new data source in the catalog, select any of the existing catalog data sources, click New Data Source on the Catalog Manager toolbar, then in the New Data source dialog, specify the name of the data source, select the SOAP Web Service connection type and click OK.

    The SOAP Web Service Data Source dialog appears.

    SOAP Web Service Data Source dialog

  3. Specify a WSDL file to create the web service connection.
  4. Click the Options button to show the additional settings.
  5. Click the Time Zone and Locale button to specify the time zone and the locale as required.
  6. If you want the catalog or schema, or both of them to be used in data manipulation, make the selection in the Qualified Name Pattern box according to your requirements.
  7. Input the number of seconds in the Time Out text field to specify how long to wait to get the WSDL file.
  8. Click the Security Configuration button to display the Security Configuration Setting dialog to configure the security policy.

    Security Configuration Setting dialog

  9. Specify the user name and password for the user name token to be used in the security policy.
  10. Specify the type for the key store from the Key Store Type drop-down list.
  11. Click the Browse button next to the Key Store File field to specify the key store file.
  12. Input the password in the Key Store Password text field to get the access to the key store file.
  13. In the Client Key box, specify the alias name to be used as client signature in the key store, and set the password for the name.
  14. In the Server Key box, specify the alias name and password to be used to get the server-side certification or public key in the key store.
  15. When done, click OK to go back to the Web Service Data Source dialog.
  16. Click the OK button in the Web Service Data Source dialog to set up the web service connection.

Note: When you configure the security policy for a web service connection, except for Key Store Type, all the other options in Security Configuration Setting dialog can be controlled by constant level formulas. However, the formula control is only available after the web service connection is already set up, that is when you edit an existing web service connection.

BackPrevious Page Next PageNext