Skip to Content

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

To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

  1. Devendrudu Potnuru

    hi, I have follwed the steps to create the webservice, but not sucessful.

    what input need to be provided in the “Specify Constomizations for the Web Serice” wizard for the filds Service name, port name, port type name and target namespace?

    if you could please create a “helloworld” class with one method sayHello and take the screen for each step and post that would be good.

    (0) 

Leave a Reply