• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Calling WebService from a simple java class

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 16
Android Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic