Show TOC

Testing Services with the Service BrowserLocate this document in the navigation structure

Use

You can test the services you created in SAP NetWeaver Developer Studio with the Service Browser. The applications hierarchy is the same as in the Composite Application Explorer of the Developer Studio.

Note

To change the prefix for the names of the tables generated for each business object node, navigate to Preferences →   Composite Application Framework and enter a value in the Default table name prefix (only capital Latin letters allowed) field.

Prerequisites
  • You have generated, built, and deployed your application on the Application Server Java (AS Java).
  • The user you use for logging on to the system is assigned the SAP _CAF_DEVELOPER UME role.
  • You have opened the Service Browser. To access the testing tool, open http://<host>:<port>/caf and choose Service Browser link.
  • You have chosen one of the option from the DataSourcedropdown box: MMR(obsolete)or Metadata Repository. If your project is created with a previous version of CAF, it is listed under the MMR(obsolete) DataSource. If the project is created with the current version of CAF, it is listed under Metadata RepositoryDataSource.
Procedure

Creating New Instances of Business Objects

  1. Navigate to the application and the business object node you want to create an instance of.
  2. To create a new instance of the business object, choose New.
  3. Enter the details for the instance and save your changes.
  4. Optional: To add associations to other business object instances, proceed as follows:
    1. Navigate to the business object node
    2. Choose the association from the Association Name dropdown box
    3. Choose Add Association and enter the key of the business object node instance you want to add as association.
      Note

      Note that when you have created a PARENT-CHILD association, the deletion of the parent deletes the instance of the child business object node. The type of the association is defined at design time.

Testing Application Service Operations

  1. Navigate to your composite application and the application service operation you want to test.
  2. Click the node of the operation and, under Details, enter the input parameters.
    Note

    You can use the following buttons for easier navigation when you test operations:

    • To add an input parameter that is a part of a collection, choose .
    • To remove an element from the collection, choose .
    • To display a table with the parameters you have entered, choose .
    • To add optional attributes to an input parameter of a complex data type, choose . To remove them, choose .
  3. Choose Execute Operation.

Testing Business Object Node findBy Operations

  1. Navigate to the business object node in the tree.
  2. Expand the node with its operations, enter the parameters of the query, and choose Execute FindBy Operation.
  3. (Optional) To create an association to other business object nodes at runtime, select the business object node from the tree and choose Add Association.