This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Do you have any requirements regarding the language in which to implement the web service client?
If you consider using Java, then you just need a JRE and client artifacts (created from the WSDL of the web service).
thank you for your reply,actually i need to run a java program in a windows os which needs to check what are the services which is running in a other unix machine.(may be tomcat servie).i tried in RMI but i coulnt able to do that.
Note: unix environment has jvm running
Joined: Sep 28, 2010
We have Unix environment where we are running a Scheduler service,Formerly the call used there written with c++ with RPC,
Now we are trying to call the scheduler service with a Java Program from a windows Os environment. Hope you got my question right?. Is it possible for us to do that. Which would be a suitable solution RMI or Webservice?
Joined: Oct 04, 2006
If you do not mind a stronger coupling between server and client, then you may use RPC.
If you want a looser coupling and more flexibility, with the risk of some overhead due to marshalling and unmarshalling of XML or JSON data, then I would use a web service.
Note that with web services, there still are some choices:
- RESTful web service.
Suitable if there is a resource-oriented approach. For instance, a client can PUT a task resource to create a new task, receiving a task id.
The client can, after having obtained a task id, check the status of the task by performing a GET to the task resource supplying the id.
- SOAP web service.
More operation-oriented than RESTful web service. Has the advantage of automatic client artifact generation in, for instance Java and .NET.
- XML/JSON web service.
Raw XML or JSON over HTTP or some other protocol.
Hope there is anything you can use!
Joined: Sep 28, 2010
Thank you Ivan, Let me see the 3 Ws's, Then let me think on what would give the best here.Anyways Thanks for your help again.