• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call webservice using Servlet give the sample code

 
Manjunath Maruthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to call webservice using Servlet give the sample code
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64832
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calling a WS from a servlet isn't different than calling a WS from any other Java code. To make things easier, start by creating a standalone client (i.e., a desktop application).
 
Manjunath Maruthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i connect to a database using webservice! if yes please send me a sample code!!
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Take a look at the NetBeans tutorials: http://netbeans.org/kb/index.html
There are, for instance, web service tutorials, tutorials showing how to interact with databases etc.
Best wishes!
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i connect to a database using webservice

A web service connects an HTTP client and an HTTP server (the service), not a DB. The service is of course free to connect to a DB, but that's no different than any other kind of Java code connecting to a DB.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic