Creating a Service Interface 
You create a service interface in SAP NetWeaver Developer Studio when:
You want to implement a service, or
You want to call a service of a provider.
You are familiar with the basics of service interface. For more information, see Service Interface.
You have opened the Enterprise Services Browser view in SAP NetWeaver Developer Studio. For more information, see Working with Enterprise Services in SAP NetWeaver Developer Studio.
In the context menu of software component version, namespace, or folder, choose .
Enter a name and namespace for the service interface.
Note
If you choose to create a service interface from the context menu of namespace or folder, the namespace is populated automatically.
Choose Finish.
The Select Change List window appears.
Select an existing change list or choose New to create a new change list for the service interface.
Choose OK.
The Service Interface Overview tab page appears.
In the Lifecycle section, select a Release State for the service interface.
In the Advanced section, select a Category, Interface Pattern, and Security Profile for the service interface.
If you want to enable encryption at run time for a service interface, then select the check box for Sensitive Data
Note
You can use this feature if you run scenarios that involve the exchange of sensitive data and you want to prevent malicious users from accessing this data. For more information, see
In the Custom Attributes section, choose Edit.
The Edit Attributes window is displayed.
Note
You can assign values only if at least one attribute definition is assigned to a service interface.
Assign values for the each attribute and choose Save.
In the Classification section, choose Add.
The Assign Classifications window is displayed.
Select a classification system from the Classification dropdown list.
Based on the classification system selected, different set of classification values are displayed in the Values table.
Select the values you want to assign to the service interface from the Values table and choose Assign.
The classification values assigned to the service interface is displayed in the classification system table.
To assign the classification values, choose OK.
The classification values assigned are displayed in the table in the Classification section.
In the Documentation section, choose Edit Documentation.
Note
This field is available only if you have selected the Use External Documentation check box, while defining the software component version.
In the Internal Documentation window, switch to:
Edit Documentation tab page to enter the documentation content.
Preview Documentation tab page to view the entered content.
Choose OK.
If you want to view documentation of the service interface in the Web browser, choose View Documentation.
To define operations and assign input, output, or fault messages to it, switch to the Definition tab page.
Select the operation node and choose Add Operation.
A new operation with associated input, output, and fault message is displayed.
Note
When you create a service interface, an operation, with associated input, output, and fault message is available. Input and output messages are displayed depending on the mode of operation chosen.
In the Details section, enter the Type, Release State, and Operation Pattern for the selected operation.
To define an input message for the operation, select the input node and choose Add Input Message.
In the Details section, choose Browse to enter the name of the input message.
The Select Message Type wizard is displayed.
Run the wizard to assign a data type or message type to the input message.
Note
If you want to create a new message type for a selected data type, choose Create Message Type field in the wizard.
To define an output message for the operation, select the output node and choose Add Output Message.
In the Details section, choose Browse to enter the name of the output message.
The Select Message Type wizard is displayed.
Run the wizard to assign a data type or message type to the output message.
To define a fault message for the operation, select the Faults node and choose Add Fault Message.
In the Details section, choose Browse to select a fault message.
The Select Fault Message Type wizard is displayed.
Run the wizard to assign a fault message type to the input message.
Note
If you want to create a new fault message type for a selected data type, choose Create Fault Message Type in the wizard.
If you want to create more operations, repeat steps 5.2 to 5.12.
Save the object and activate your changes.
For more information on how to activate your changes, see Working with Change List in SAP NetWeaver Developer Studio.