This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

green horn to webservice

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello Ranchers ,

I am completely new to web service.

When gone through tutorials , i read that a web service can be implemented either using AXIS or with JAX-RPC . There is a lot of confusion in the tutorials.

Can anybody please tell me , what is the purpose for using a Webservice in a Application " that is hosted on the intranet" , why JMS doesn't suit here ?
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web services can certainly be implemented with more technologies than Axis or JAX-RPC, e.g. COBOL, C++, Perl, for example.

A web service is for two applications to communicate with each other at runtime using SOAP over HTTP.

This can take place either internally in a LAN or WAN environment or the Internet. The web service paradigm is an alternative to messaging.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James Clark wrote:A web service is for two applications to communicate with each other at runtime using SOAP over HTTP.

Even SOAP is not necessary (and is fast losing popularity).
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear for adding a point .


James , from your explanation i understood that Web Services are for communication(Data exchange) between two Technologies/Languages used in a project .


Can anybody please tell me a scenario / example for using a Web Service where my entire Application/Project is of Java and J2EE .
Can i still use Web Service in it for any purpose?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web Services are for communication(Data exchange) between two Technologies/Languages

Not quite. The point was that the two endpoints are independent of each other, and can thus be implemented in any language or technology that's convenient; those can be identical, though.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya , Valid and a Great point too.

I want to ask doubt from your answer " If my application is of internet basid application then i can register a domain and publish a web service .

But what if my web service is of intranet based , then why should we use the web service there ? As this can be done by calling a OOP calling a method on that object.

 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WS are generally used to connect systems running on different machines, or (less commonly) running on the same machine in different processes. Using them for communication within the same process (like within a single JVM) would be very rare indeed - they do have a considerable overhead. So if the same can be done with a method call, then that may be the right thing to do.

Note that WS provide a degree of looser coupling. Even if that may not be necessary right now, it makes changing the architecture later simpler.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your time ulf. Now i understood .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic