aspose file tools*
The moose likes Web Services and the fly likes How Web Service Module Interact With Ordinary Java Program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How Web Service Module Interact With Ordinary Java Program" Watch "How Web Service Module Interact With Ordinary Java Program" New topic
Author

How Web Service Module Interact With Ordinary Java Program

Hari Dhanakoti
Greenhorn

Joined: Jan 04, 2007
Posts: 6
Hi Friends,

I trying to have a Java program which runs based on the Socket programming.

In an Java program which acts as a server and a java program communicates with the server for information exchanges.

Now i have a query of handling and running a web service module program to communicate with the existing java programs which is running......

Is there is any way to communicate with the ordinary console application with the web services....


Regards<br />Hari
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Client programs interact with web services through creation of requests and receipt of responses. The most common approach uses a HttpURLConnection to address a web service with a known URL - thats why they are called web servicea after all. You certainly do NOT have to do any socket programming of your own - the standard Java library has all you need.

Other possibilities for communication between Java programs include email, java message service, and JINI.

There are plenty of toolkits and tutorials around to help you understand the possibilities and refine your requirements.

Bill
 
jQuery in Action, 2nd edition
 
subject: How Web Service Module Interact With Ordinary Java Program