Editing a Service Definition
Prerequisites
You have created a service definition using the service wizard.
For more information, see Creating an Inside-Out Service Definition.Context
You create a service using the default values of the assigned profile. You can change these values for function modules, BAPIs, and function groups.
Procedure
- Double-click the service definition in the subtree Service Definitions in the Repository Browser of the ABAP Workbench under Enterprise Services.
- In the application toolbar, choose Display/Change.The following tabs are displayed.
Option Description Properties In this tab page you find general information on the service provider External View / Internal View / Types
Make changes in the External View tab page if the service definition is to be displayed to the outside in a different form.
Change Names of Operations
Select the operation whose name you want to change. Specify the desired name for the operation in the Operation field:
Adapt Parameters
Choose the required parameter: You can then make any of the following changes to it:
-
Change Parameter Name
In the Parameter field, enter the selected name.
-
Change Parameter Type
You can change the type of a parameter if it is based on a structured type or table type.
To change the type of parameter, proceed as follows:
Choose the Types tab.
Select the type you want to copy. Choose Copy (from the context menu or application toolbar).
In the dialog box that appears, enter a name for the copied type. It then appears in the Copied Types category.
Fields belonging to the type can be deleted by selecting the appropriate function in the context menu. If the copied type includes other fields that are based on a structured or table type, the context menu also contains the Change Type option. If you want to change a type, choose a suitable type in the dialog box that appears. You will perhaps have copied this previously (see above). Choose the External View tab in order to assign the new type. Confirm with Return.
Define Default Value
Parameters that are optional in the original interface can also be optional in the service definition. In this case, the default value of the original interface is used. Alternatively, you can enter a default value yourself.
Hide Parameters
Uncheck the Exposed checkbox.
If a parameter is hidden, it does not appear in the WSDL document at all. In such cases, the fixed value or parameter initial value is used.
Objects Used In this tab, all the objects belonging to the service provider are listed. The ABAP names can be changed.
Configuration
For more information, refer to the section Changing the Configuration.
WSDL In the case of a WSDL document that is the basis for the service definition, you can choose either the RPC or Document style.
You can save the WSDL to a file using the corresponding pushbutton or you can copy the URL to be able to use it during proxy generation.
Classification
You can publish the tModel of a service (this is the technical specification of a service) in a Services Registry and classify and publish service definitions. tModels of services (based on a function module, a function group, a BAPI, or a message interface) are published from the ABAP backend.
tModels of services that were modeled in the Enterprise Services Repository are published directly from the Enterprise Services Repository. For more information, refer to Working with a Services Registry.
Prerequisite for the classification and publication is that a connection to the required registry is set up (refer to Setting Up a Connection to the Services Registry).
-