jQuery in Action, 2nd edition*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60740
    
  65

Please read: NotACodeMill, DoYourOwnHomework and ShowSomeEffort.


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

Joined: Mar 22, 2005
Posts: 41034
    
  43
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).


Ping & DNS - my free Android networking tools app
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
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
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
 
Similar Threads
sending large files through webservice
WSRP ?
Sample Webservice
JAXWS and SoapFault
how to download binary file in jsp