This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes web srvice connect database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "web srvice connect database" Watch "web srvice connect database" New topic
Author

web srvice connect database

nouredine bakhtaoui
Greenhorn

Joined: Jun 06, 2013
Posts: 6
I need to create a web service in Java using Eclipse. My requirement is to connect to a database with that web service and retrieve some values. WebService with database Mysql
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41035
    
  43
Connecting to a DB from a WS isn't different than connecting to a DB from any other Java class. What particular problem are you facing?


Ping & DNS - my free Android networking tools app
nouredine bakhtaoui
Greenhorn

Joined: Jun 06, 2013
Posts: 6
thank you for answer
but
i need web service connect and insert in database (mysql)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41035
    
  43
What do you mean by "but"? What particular problem are you facing? Why do you think connecting to a DB from within a WS would be any different than connecting to a DB from any other class (which I assume you have done successfully)?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web srvice connect database
 
Similar Threads
How to call webservice using Servlet give the sample code
doubt in web service composition
how many ways do two java program communicate?
Web Srevices with Database
Webservice Responses