*
The moose likes Web Services and the fly likes Call Service running in Unix using webservice from a windows program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Call Service running in Unix using webservice from a windows program" Watch "Call Service running in Unix using webservice from a windows program" New topic
Author

Call Service running in Unix using webservice from a windows program

Timmy Dumrey
Greenhorn

Joined: Sep 28, 2010
Posts: 6
Hi,
What would I need to do to call a service which is running in Unix server, that to be communicated with my local machine using
java webservice
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
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).
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Timmy Dumrey
Greenhorn

Joined: Sep 28, 2010
Posts: 6
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

Timmy Dumrey
Greenhorn

Joined: Sep 28, 2010
Posts: 6
Hi Ivan,
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?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
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.
Etc.
- 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!
Best wishes!
Timmy Dumrey
Greenhorn

Joined: Sep 28, 2010
Posts: 6
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.
Shameer Kunjumohamed
Greenhorn

Joined: Sep 29, 2004
Posts: 12
See this blog post, titled "Web Service Client with Spring-WS" at
http://justcompiled.blogspot.com/2010/11/web-service-client-with-spring-ws.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Call Service running in Unix using webservice from a windows program