Quantcast
Channel: SCN : Blog List - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 676

Creating Webservice using SAP NWDS

$
0
0

Creation of Webservice using NWDS:

 

This blog  explains:

  1. How to Create Web Service
  2. Web Service Navigator
  3. Log Viewer

 

Software Prerequisite:

                Install Netweaver Development Studio in system.

 

Create Web Service

 

                To create web service in Netweaver Development Studio (NWDS) by following steps:

1.JPG

 

Step1:

Creating Dynamic web project in NWDS

Go to New -> project -> Others -> Web Application -> Dynamic Web Applications

2.JPG

 

Step 2:

Create java class file and write methods

3.JPG

 

Step3:

Right click the java file, select web services -> create web service. 

 

4.JPG

5.JPG

 

Web service type will be “Bottom up Java bean web Service, Service implementation will be the java file which you want to create web service.

 

Step 4:

Select Server hyperlink it open the following window, in that select “SAP Server” ->OK.

6.JPG

 

 

 

Step 5:

Select Web service Runtime hyperlink it opens following window, select “SAP server”

 

7.JPG

 

Step 6:

                Click “Next” button.

8.JPG

Step 7:

Enter service name and click “Next” button.

 

 

9.JPG

Step 8:

                Check the correct method name display in Method selection window, if yes click “Next” button.

 

10.JPG

Step9:

Build Archive file or ear file, Give user name and password for deploying ear file in server.

After published ear successfully in server will get alert message “Deployed completed successfully.

 

11.JPG

 

12.JPG

 

 

Step10:

Click “Finish” to complete the web service creation in NWDS.

 

13.JPG

Web Service Navigator

            

Step1:

Open the http://Testxidev:50000/index.html page in web browser.

Click “Web Service Navigator”

               14.JPG

Step2:

Enter user name and password.

15.JPG

 

Step3:

Enter the service name in Select service text box and click filter simple, if your service name available clicks the service name.

 

16.JPG

Step4:

Window open with web service method names contains WSDL URL for web service

17.JPG

Step 5:

Select the method name and open the “Enter input Parameters screen”, enter the values for the methods.

Press “Execute” method to execute the web service, after execution it open result window to display the web service details.

 

18.JPG

 

Log Viewer

 

Step1:

Open: http://Testxidev:50000/nwa

 

19.JPG

 

Step 2:

Press Tab Availability and Performances Management.

Click Log Viewer.

20.JPG

 

Step 3:

In show dropdown list select Custom view, Select Create new View.

 

21.JPG

22.JPG

 

 

Step4:

For filtering log file select the “Filter by Content” option, select the path as “/Applications/WebServicesCategory”.

23.JPG

24.JPG


Viewing all articles
Browse latest Browse all 676

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>