Creation of Webservice using NWDS:
This blog explains:
- How to Create Web Service
- Web Service Navigator
- Log Viewer
Install Netweaver Development Studio in system.
Create Web Service
To create web service in Netweaver Development Studio (NWDS) by following steps:
Creating Dynamic web project in NWDS
Go to New -> project -> Others -> Web Application -> Dynamic Web Applications
Create java class file and write methods
Right click the java file, select web services -> create web service.
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.
Select Server hyperlink it open the following window, in that select “SAP Server” ->OK.
Select Web service Runtime hyperlink it opens following window, select “SAP server”
Click “Next” button.
Enter service name and click “Next” button.
Check the correct method name display in Method selection window, if yes click “Next” button.
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.
Click “Finish” to complete the web service creation in NWDS.
Web Service Navigator
Open the http://Testxidev:50000/index.html page in web browser.
Click “Web Service Navigator”
Enter user name and password.
Enter the service name in Select service text box and click filter simple, if your service name available clicks the service name.
Window open with web service method names contains WSDL URL for web service
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.
Press Tab Availability and Performances Management.
Click Log Viewer.
In show dropdown list select Custom view, Select Create new View.
For filtering log file select the “Filter by Content” option, select the path as “/Applications/WebServicesCategory”.