Demo Time ! <ul><li>Consuming WS (Flickr Example)
Creating RESTFul serivice from Patterns
Creating RESTFul service using JPA
Consuming WS using Ajax
Sabyasachi Ghosh ( Tweet @neilghosh)
IEEE Hyderabad </li></ul>
Webservices Demo <ul><li>Requited Tools </li><ul><li>NetBeans IDE 6.9.1 with J2EE
Glassfish Server V3
Mysql 5.1  </li></ul></ul>
SCHEMA <ul><li>Log in to MySQL </li><ul><li>MySQL -u <username> -h <hostname> -p <db>
MySQL -u root -p demo </li></ul><li>Version Check </li><ul><li>SELECT VERSION(); </li></ul><li>describe People; </li></ul>
DATA <ul><li>Select * from People; </li></ul>
New Project
Project Name
Choose Server
Entity Class from Table
Entity Classes
Upcoming SlideShare
Loading in …5
×

Creating REST Webservice With NetBeans

13,400 views

Published on

Published in: Technology
  • Be the first to comment

Creating REST Webservice With NetBeans

  1. 1. Demo Time ! <ul><li>Consuming WS (Flickr Example)
  2. 2. Creating RESTFul serivice from Patterns
  3. 3. Creating RESTFul service using JPA
  4. 4. Consuming WS using Ajax
  5. 5. Sabyasachi Ghosh ( Tweet @neilghosh)
  6. 6. IEEE Hyderabad </li></ul>
  7. 7. Webservices Demo <ul><li>Requited Tools </li><ul><li>NetBeans IDE 6.9.1 with J2EE
  8. 8. Glassfish Server V3
  9. 9. Mysql 5.1 </li></ul></ul>
  10. 10. SCHEMA <ul><li>Log in to MySQL </li><ul><li>MySQL -u <username> -h <hostname> -p <db>
  11. 11. MySQL -u root -p demo </li></ul><li>Version Check </li><ul><li>SELECT VERSION(); </li></ul><li>describe People; </li></ul>
  12. 12. DATA <ul><li>Select * from People; </li></ul>
  13. 13. New Project
  14. 14. Project Name
  15. 15. Choose Server
  16. 16. Entity Class from Table
  17. 17. Entity Classes
  18. 18. Source Created
  19. 19. New RESTful service
  20. 20. Resource Classes
  21. 21. Test RESTful Webservice
  22. 22. Google Maps Integration <ul><li>Sign up for a Key </li><ul><li>http://www.google.com/apis/maps/signup.html
  23. 23. http://localhost:8080 As website URL @GET @Produces(&quot;text/html&quot;)
  24. 24. public String getGoogleMap() {
  25. 25. // Drag and drop the getGoogleMap operation
  26. 26. return &quot;&quot;;
  27. 27. } </li></ul></ul>
  28. 28. Drag the service Method
  29. 29. Test the Service
  30. 30. <ul>Thank you <ul><li>[email_address] </li></ul></ul>

×