Académique Documents
Professionnel Documents
Culture Documents
Applies to:
SAP NetWeaver Developer Studio 7.0.11
Summary
Using this document anyone can easily create a Web Service from a java class in SAP NetWeaver; just you
have to fellow these steps.
Author: Rajes Ghosh
Company: HCL Technologies Ltd
Created on: 6 June 2007
Author Bio
Rajes Ghosh is working as a SAP NetWeaver Consultant for HCL Technologies Ltd.
Table of Contents
Applies to: ........................................................................................................................................ 1
Summary.......................................................................................................................................... 1
Author Bio ........................................................................................................................................ 1
STEPS TO FELLOW ....................................................................................................................... 3
1. CREATE A JAVA PROJECT ....................................................................................................... 3
2. CREATE PACKAGE & JAVA CLASS ......................................................................................... 3
3. CONSTRUCT REQUIRED METHOD ......................................................................................... 4
4. OPEN WEB SERVICE PERPECTIVE......................................................................................... 4
5. CREATE WEB SERVICE ............................................................................................................ 5
6. PROVIDE WEB SERVICE NAME, CONFIGURATION TYPE & CONFIGURATION NAME...... 5
7. SELECT THE REQUIRED METHOD TO EXPOSE AS WEB SERVICE.................................... 6
8. PROVIDE VIRTUAL INTERFACE & WEB SERVICE DEFINATION NAME............................... 6
9. BUILD EAR FILE ......................................................................................................................... 7
10. DEPLOY THE EAR FILE ........................................................................................................... 7
11. DEPLOYMENT FINISHED ........................................................................................................ 7
12. OPEN WEB SERVICE NEVIGATOR TAB & REFRESH .......................................................... 8
13. OPEN THE WEB SERVICE ...................................................................................................... 8
14. TEST THE WEB SERVICE ....................................................................................................... 9
15. TEST INPUT SCREEN............................................................................................................ 10
16. OUTPUT SCREEN .................................................................................................................. 10
17. REQUEST SOAP XML MESSAGE ......................................................................................... 11
18. RESPONSE SOAP XML MESSAGE ...................................................................................... 11
Related Content............................................................................................................................. 11
Disclaimer and Liability Notice....................................................................................................... 12
STEPS TO FELLOW
Here EMICalculation is the required method in class MyEMICalculator, which we are going to expose as
Web Service.
Click on the Build EAR menu by right click to create the EAR file.
Select the EAR file and right click on it. You will get
Deploy menu.
Click on the Deploy menu to deploy it in J2EE Engine.
Give the input and Click on the Send button to get the test the web service.
Related Content
Please refer to this web page if you want to know more.
http://help.sap.com/saphelp_nw04/helpdata/en/30/581e3e6217b40be10000000a114084/frameset.htm