Practical 1
Practical 1
AY 2024-2025
Practical: 1
Page 2 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
2) Create Java Packages from
Web Application > Source Packages > New > Java Package
Page 3 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
4) Right Click on Package and create web service
New > Web Service
Page 4 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
6) Under Web Services Folder Select Web service and Right click > Add Operation
Page 5 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
7) Add Operation
Specify Name of Operation and click on OK
Page 6 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
Page 7 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
Page 8 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
Page 9 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
10) Deploy Project
Page 10 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
Page 11 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
Page 12 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
12) Click on WSDL File Link and copy newly open window URL
Page 13 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
13) Create Simple Java Application from File > New > Java > java Application
Page 14 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
15) Add Web Service Client from Client Project > Source Package > New > Web
Service Client
Page 15 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
17) Open code of java file and Right click > Insert Code
Page 16 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
Page 17 of 18
22012021001 6CEIT-C1 Gaurav Akabari
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
Page 18 of 18