This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to call webservice using Servlet give the sample code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to call webservice using Servlet give the sample code" Watch "How to call webservice using Servlet give the sample code" New topic
Author

How to call webservice using Servlet give the sample code

Manjunath Maruthi
Greenhorn

Joined: Dec 30, 2010
Posts: 2
How to call webservice using Servlet give the sample code
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63334
    
  70

Please read: NotACodeMill, DoYourOwnHomework and ShowSomeEffort.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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

Joined: Dec 30, 2010
Posts: 2
can i connect to a database using webservice! if yes please send me a sample code!!
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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!


My free books and tutorials: http://www.slideshare.net/krizsan
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to call webservice using Servlet give the sample code
 
It's not a secret anymore!