1. open netbeans...
![netbeans start](http://pages.huikau.com/nb_start.bmp)
2. create a new Java Web Project
![create project](http://pages.huikau.com/create_proj.jpg)
3. create a new Web Service
![create service](http://pages.huikau.com/create_web_service.bmp)
![service](http://pages.huikau.com/service.jpg)
4. specify the implementation details of your new Web Service
![implementation](http://pages.huikau.com/impl.bmp)
5. deploy it!
![deploy](http://pages.huikau.com/deploy.bmp)
6. go see your newly created Web Service in action!
http://localhost:8080/MyTest/TimeService?wsdl
7. now to support REST too!
![generate](http://pages.huikau.com/generate.bmp)
8. test your newly created REST service!
![test rest](http://pages.huikau.com/test_rest.bmp)
![rest tool](http://pages.huikau.com/rest_tool.jpg)
Or just hit:
http://localhost:8080/MyTest/resources/timeserviceport/gettime/
That's it, hope you didn't blink...
No comments:
Post a Comment