BackPrevious Topic  Next TopicNext

Accessing Data via SOAP Web Service Connections

Web services provide a standard means of inter-operating between different software applications, running on a variety of platforms and/or frameworks. It is a way to connect to a remote application and request data directly from the application without going to a database. Designer supports SOAP Web Services defined by WSDL 1.1 or WSDL 2.0 as data sources. You can add SOAP Web Service data sources to a catalog by importing WSDL files. This topic describes how you can set up SOAP Web Service connections in a catalog, and add and manage tables obtained from SOAP Web Service data sources in the catalog via the connections.

This topic contains the following sections:

Setting Up SOAP Web Service Connections in a Catalog

To set up a connection to connect a catalog to a SOAP Web Service data source, take the following steps:

  1. Create a catalog or open a catalog.
  2. In the Catalog Manager, do either of the following:
    • To set up the connection in an existing data source in the catalog, right-click the data source node and select New SOAP Web Service Connection from the shortcut menu.
    • To set up the connection in a new data source in the catalog, select any of the existing catalog data sources, select New Data Source on the Catalog Manager toolbar, then in the New Data source dialog box, specify the name of the data source, select the SOAP Web Service connection type and select OK.

    Designer displays the SOAP Web Service Data Source dialog box.

    SOAP Web Service Data Source dialog box

  3. Specify where to get the WSDL file of the SOAP Web Service data source.
    • If you want to use a WSDL file on your local disk, select Local File, then select Browse to browse for the file.
    • If you want to use a WSDL file through a URI, select URI, then type the URI string in the text box and specify the user name and password for assessing the WSDL file.
  4. Select Options to show the additional settings.
  5. In the Time Zone and Locale box, specify the time zone and locale for the SOAP Web Service data source.
  6. If you want to use the catalog or schema, or both of them in data manipulation, make the selection in the Qualified Name Pattern box accordingly.
  7. Type the number of seconds in the Time Out text box to specify how long to wait to get the WSDL file.
  8. Select Security Configuration to display the Security Configuration Setting dialog box to configure the security policy.

    Security Configuration Setting dialog box

  9. Specify the user name and password for the user name token to be used in the security policy.
  10. From the Key Store Type drop-down list, select the type for the key store.
  11. Select Browse next to Key Store File to specify the key store file.
  12. Type the password in the Key Store Password text box 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. Select OK to go back to the SOAP Web Service Data Source dialog box.
  16. Select OK to set up the SOAP Web Service connection.

Note icon

  • Designer does not support WSDL files that use an Import statement to import content. You need to append the content directly in the WSDL file.
  • When you configure the security policy for a SOAP Web Service connection, except for Key Store Type, you can control all the other options in the Security Configuration Setting dialog box using constant level formulas. However, the formula control is only available after you have set up the connection, meaning, when you edit an existing SOAP Web Service connection.

Back to top

Adding Tables to a SOAP Web Service Connection

After you have set up a SOAP Web Service connection in a catalog, Designer stores all information of the SOAP Web Service defined in the WSDL file in the catalog, including information of service, operation, and the input message and output message in each operation. You can then add tables into the catalog via the connection based on this information. However, you can only define tables based on operations which support SOAP binding.

To add tables to a SOAP Web Service connection

  1. Do one of the following:
    • Right-click the connection and select Add Tables from the shortcut menu.
    • Right-click the Tables node of the connection and select Add Tables from the shortcut menu.
    • Right-click an existing table in the connection if there is and select Add Tables from the shortcut menu.
    • Right-click any folder in the Tables node of the connection if you have already created some and select Add Tables from the shortcut menu.
    • Select the Tables node of the connection, or any existing table or folder in the connection any and select Add Tables on the Catalog Manager toolbar.

    Designer displays the Add Table dialog box.

    Add Tables dialog box

  2. Select a service from the Service Name drop-down list.
  3. If you use WSDL 1.1 to define the SOAP Web Service, you also need to specify the port type for the selected service from the Port Type drop-down list.
  4. Designer lists all operations with SOAP binding that are included in the selected service in the Operation Name drop-down list. Select the required operation and Designer displays the input message of the operation.
  5. Specify the value of the input message by either typing the value in the text box in the Value column, or selecting Formula button in the text box to select or define a constant level formula or parameter in the current catalog data source to return the value.

    Note icon If the Input Message column is empty, it means the input message has its own defined values, so you do not need to provide values for it.

  6. Type the number of seconds in the Time Out text box to specify how long to wait to get the specified service and operation information defined in the WSDL file.
  7. If you use WSDL 1.1, you may sometimes find that the XML schema described by the output message does not match the concrete XML instance in the SOAP responded from the web service, as a result, Designer is not able to read data properly from that XML instance. In this case, you can select Use Schema from Response to ignore the XML schema in the output message and directly parse the XML schema from the specific XML instance that is included in the SOAP responded from the web service.
  8. Select OK to accept the changes and exit the dialog box.

You can then create queries and business views using these tables. A report is developed from a query (or something else which is functionally similar) or from a business view.

Back to top

Editing the Operation Used to Create Tables

Designer displays the service and operation you have selected to create the tables in a SOAP Web Service connection under the Tables node of the connection. If you use WSDL 1.1 to define the web service, Designer also includes the defined port type. You can edit the information of the operation.

To edit the operation used for creating tables in a SOAP Web Service connection

  1. Select the web service operation node, right-click it and then select Edit from the shortcut menu. Designer displays the Edit Operation Calling Property dialog box.

    Edit Operation Calling Property dialog box

  2. Edit properties of the operation as described in the preceding procedure.
  3. Select OK to accept the changes and exit the dialog box.

Back to top

Managing the Tables in a SOAP Web Service Connection

For the tables you have added into a catalog from a SOAP Web Service data source, you can refresh them, organize them into folders, and remove and add the table columns the same as you do with tables from a JDBC database.

Back to top

BackPrevious Topic  Next TopicNext