You use the Service Browser to execute and test application services and business objects created in the Composite Application perspective to SAP NetWeaver Developer Studio. The Service Browser is a user interface accessed through SAP NetWeaver and is divided into two parts:
● Available Services - lists all deployed applications created in Composite Application perspective including the Composite Application Framework (CAF) project. By expanding the services tree, you can see all operations available for testing
● Data Component - you can test service operations in this view. The content of the view changes depending on operation parameters. The Current result service table displays the operation you have selected.
● You have generated, built, and deployed your application.
● You have assigned the role CAF_DEVELOPER.
● You have opened the Service Browser. To access the testing tool, go to: http://<host>:<port>/caf → Test Tools → Service Browser.
...
1. In the Available Services tree, navigate to your project and open the business object you want to create instance of.
2. To create a new instance of the business object, choose New and enter the required information in the Current result service table.
The column headings are the business object attributes you have created during design time. You cannot give value for the GUID and default attributes: key, createBy, createdAt, modifiedAt, modifiedBy.
Column |
Description or Constraint |
key |
Fixed length of 36 characters |
lastChangedAt |
Format is: YYYY-MM-DDTHH:MM:SS.SSS |
createdAt |
Format is: YYYY-MM-DDTHH:MM:SS.SSS |
More information: XSD Data Types Mapping
3. To read a business object instances, choose Find. Choose Add Key and enter the GUID key for the search.
4. To apply the changes choose Save.
...
1. Choose one of the available service operations.
2. Enter parameters for the query and choose Execute Query.
You can use * as a wildcard in the beginning or in the end of the query filter value.
The result is displayed in the Current result aspect table.
If the operation throws an exception the Service Browser reports an error. Choose Show details in the status line. A new screen will pop-up and display the complete stack trace of the exception.
If service instances have been modeled to use referenced business objects, then the following fields are enabled:
● Available actions for result service – you can see the available actions for the application services in your application. An action is a method without a result. Choose Execute action to execute result service.
● Available relations for result service - you can see referenced business objects from your object in this field if they were modeled in the service modeler. To select an available relation, choose one of the following:
○ Go to related service – displays the business objects referenced by your business object.
○ Go to previous service – negates the action of Go to related service.
● Related key - You can enter a related key to search for instances referenced by your business objects. You can do one or more of the following within the table:
○ associate or disassociate relations
○ create or delete related rows