• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Call Service running in Unix using webservice from a windows program

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Timmy Dumrey
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic