Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling WebService from a simple java class  RSS feed

 
Renjith Ravi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to web service and web based applications.

Can anyone expalin me how to call a webservice from a simple java code .!!?

can i use java.net.URI class for that purpose?


regards,
Renjith
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi and welcome to java ranch!!

This might help you in getting started " http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/setenv.html "

\m/ ... all the best
 
Naren Mane
Greenhorn
Posts: 16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Renjith,

WELCOME. You can call webservice easily by using WSDL2Java tool of AXIS2 WS engine. Have a look here http://axis.apache.org/axis2/java/core/.

Thanks.
 
Tim Moores
Saloon Keeper
Posts: 3512
77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on what kind of service you're talking about. For RESTful services java.net.HttpURLConnection works just fine. For SOAP services it gets a lot more complicated.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!