Creating a Web Service

Use

The Web services tool is available in the Service Professional role and can be accessed from the Service Operations work center.

The tool is provided in the form of a wizard and guides you through the process of defining a service object, which is the basis for the Web service you want to create.

There are four steps involved in the process. However, wherever you are within the process, you can always navigate backwards and forwards as you want. Within each step, you can switch to edit mode if you want to make changes or corrections, you can cancel your actions, and save your data.

Procedure

Object Overview List

This is your point of entry and is shown in display mode. The information provided indicates the type of object involved and gives the current status of the object. Functions are available for searching for objects, filtering, copying, and deleting objects, and starting the wizard to create new objects.

Search criteria include the following:

  • Object name and description

  • Status, such as Draft, Activated, Productive

  • Generation status, indicating the services with generation errors after transport

  • Business object (those services associated with an eSOA business object)

  • Administrative data, such as created on and created by

Wizard Screen 1: Select Object

Enter the basic data for the object you want to create:

  1. Assign the service object a name. The type of object (service object) is defaulted by the system.

  2. Enter a business object, component, and root object.

    A business object associates a service definition with an eSOA business object and therefore helps to group and find similar services. It is for information purposes only and has no technical consequences.

  3. Select the types of operation you want to create (at least one type must be selected).

  4. Decide whether the service object is to constitute a compound service and, if this is applicable, select the relevant component set.

    The objects this set contains are shown in the Included Objects field.

  5. Select the relevant query objects in the table. The possible entries depend on the component you have selected. You can select as many queries as you need.

Wizard Screen 2: Select Attributes

The BOL tree is shown for the root object you have selected. It is shown on a split screen, with the tree structure on the left and the related attributes on the right. You can increase the size of the left section of the screen by clicking Personalization.

Select the attributes you require as follows:

  1. Navigate through the BOL tree from one relation to the next.

  2. Select a relation on the left to display the associated attributes on the right.

  3. Select one or more attributes for each relation, or even all attributes of the relation if this is more appropriate, and confirm your selection.

    Attributes that have been selected are indicated in a darker color.

  4. Repeat this procedure for each relation. To display the technical BOL attribute names, click Expert Mode.

    Only the attributes selected are available on the next screen. The system creates a design object for these relations only. The other attributes are retained but set to hidden.

Wizard Screen 3: Maintain Attributes

The attributes selected on the previous screen are listed in the first table with the associated query objects in the second table.

Root Object

The attributes are listed for each relation. Any duplicates are hidden by the system, with the settings for the one attribute that remains visible applying to all others. The first two columns give the relation and attribute names. You can make the following entries:

  • Ref. Name gives the name that is used for the attribute in the WSDL for the attribute. It is language-independent and can be up to 60 characters long.

  • A default value enables you to prefill fields (for create methods) in a certain way, meaning that the service consumer does not need to enter this data. This is particularly useful for mandatory fields. The default values are used, though not displayed, in the Web Services Description Language (WSDL).

  • Excluded indicates that the field is read-only.

  • Standard indicates that this is a normal field.

Query Objects

The attributes are listed for each query object. The first column indicates to which query object the attribute belongs. The settings are the same as for the root object attributes, however, you have the option of including or excluding all query attributes at once.

Wizard Screen 4: Settings

The general object settings as specified on screen 1 are displayed, giving the name of the object and specifying by whom and when it was created and changed.

Expert information includes technical details and names, and information as to who activated the object and when, who set it to productive or not productive and when.

The Import Generation Error indicator shows whether any errors occurred during service generation in the target system after the service was transported.

Select a NetWeaver security profile and set the status accordingly for finalized objects:

  1. Once an object has been finalized, perform a basic semantical check by clicking Check.

  2. If there are no errors, click Activate. The Web service is created by the system and the status set to Activated. This generates the structure, function modules, function group, and Web service.

    The Web service is now ready to be tested:

    1. Click Test Page.

    2. Select the relevant Web service in the list and choose Web Service Home Page.

  3. To make any changes or corrections, the status is set back to Draft (not active). When the Web service has been tested and no errors are found, set the status to Productive.