• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Webservice: Telephone Book

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hallo everybody. First of all, I want to say, that I'm new to this topic and that English is not my mother tongue but I hope you will understand.

Applications: Netbeans (8.0.1), Apache Tomcat

My Aim: Creation of a telephone book

How should it work:
I have a Database with Data of people (name, adress, phone number).
If a user enters a phone number (CLIENT) -> the correct person with the name and adress should appear.

I'm quiet new to this topic and I would like to learn it by using this example.

I build up the infrastructure and now I'm at the point that I have to create a Webmethod for it. Can somebody help me with it? It would be really nice. I just worked on projects like addition of two integers, hello "name", ... I think this example now is harder, BUT i can learn a lot!

I would be very grateful if somebody could help me! Thank you very much!
Best Regards!
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey mario !
I am also stuck on the same problem , did anyone sought it out for you ?
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Firstly do you want to create a RESTful Web service or a SOAP Web service? If you are not familiar with both then please read about them. RESTful way of building web services has been quite popular for sometime now.
In any case you have to identify the APIs you want to expose as a web service. Something like:
1. Get name and address given the phone number
2. Add a new contact to the database.
3. Modify an existing contact.
4. Delete an existing contact.
 
See where your hand is? Not there. It's next to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic