Creating, Publishing, Testing and Describing A Web Service: Example
Creating, Publishing, Testing and Describing A Web Service: Example
@WebService annotation
@WebMethod annotation
– Optional operationName element to specify the method
name that is exposed to the web service’s client
To build project
– Right click the project name in the Netbeans Projects tab
– Select Build Project
To deploy
– Select Deploy Project
– Deploys to the server you selected during application setup
– Also builds the project if it has changed and starts the application server if it is not
already running
To Execute
– Select Run Project
– Also builds the project if it has changed and starts the application server if it is not
already running
Tester web page created by Sun Java System Application Server for the HugeInteger web service.
17
Netbeans Project tab after adding a web service reference to the project.
25