aspose file tools
The moose likes Web Services and the fly likes Calling WebService from a simple java class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Calling WebService from a simple java class" Watch "Calling WebService from a simple java class" New topic
Author

Calling WebService from a simple java class

Renjith Ravi
Greenhorn

Joined: Nov 07, 2011
Posts: 1
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

Joined: Apr 02, 2008
Posts: 813


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


Regards, Sud.
SCJP 5 ScjpFAQ JLS
Naren Mane
Greenhorn

Joined: Mar 02, 2011
Posts: 16

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
Rancher

Joined: Sep 21, 2011
Posts: 2407
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Calling WebService from a simple java class
 
Similar Threads
Webservices in java
How to deploy a JAX-WS webservice which is both Service Provider and Consumer for someother Service?
Help: Creating web service proxy using JAXB generated domains
cont able to run a sample webservice using eclipse, axis2, tomcat
Creation of WebService