Summary:
Java web service functionality for calculating the number of work items in one’s UWL (Universal Work list) and displays it using a WSDL file.
Author: Shri Vidya S
Created On: 09/04/2012
Table of Contents
Java web service functionality for calculating the number of work items in one’s UWL (Universal Work list) and displays it using a WSDL file.
The Pre-requisites for this Web service component creation includes having a NWDS in place and workspace created to start the component design & development.
The next Pre-requisite for this web service is to have SDM configured so that we can deploy the EAR files to the respective server or portal (Dev, Quality & Production).
The brief steps to be followed to create a Java web service using NWDS are as below.
PROCEDURE:
Test the Web service and check for the results
1. Navigate to the JAVA perspective in NWDS and Create a New Project as shown below.
2. Enter a Name for the Project and Click Finish.
3. Create a New Package Say, com.sap by right clicking on the Project name and clicking New.
4. Under this newly created Package (by right clicking the package), Create a JAVA class and Name it .
Provide the Class name and details in the below screen and click on finish.
5. Paste the code shown in the Text Document attached for the code to be included in the Class and Import all the necessary APIs and save without any errors.
6. To Import all the APIs , right click on the Project - > Properties -> Java BuildPath -> Add Variables and add the necessary APIs and click Ok.
7. To add Project Reference, right click on the Project - > Properties -> Project References -> Choose the DC already developed with just the SCA file ( UWLJWF22P_6-10003490.SCA) imported into it.The DC having the SCA file looks like below.
8. Now Navigate to the Webservice Perspective. The component should appear as below.
9. Right click on the JAVA class to create New Webservice.
Give the Credentials as below and click Finish.
10. Now Right Click on the JAVA class to Build EAR file.
15. Now click on the Name of the webservice to see the below screen.
16. The wsdl from the above screen can be saved and shared with the Microsoft Sharepoint team for consumption from their end so that the count can directly be displayed on the Sharepoint Portal for Users’ convinience. The Sherepoint developers can further display the information in sync with the Themes used in an IFrame.
17. For testing purposes, Click on Test to test the application. Then click on the method that opens as below.
21. Here the output is displayed by the webservice in the form of an array.
NWDS Installation involves the steps mentioned in the below document provided by SAP.
NWDI and NWDS troubleshooting can be found in the below link :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 |