You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sam Wun <sa...@yahoo.com> on 2008/04/09 16:21:29 UTC

Why use SOAP in Java

Hi,

I am wondering why use SOAP with Java?
Since SOAP is based on RPC, I think the best question may be asked, why use RPC for client-server application?

Thanks




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Why use SOAP in Java

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.

----- Original Message ----- 
From: "Sam Wun" <sa...@yahoo.com>
To: <us...@tomcat.apache.org>
Sent: Wednesday, April 09, 2008 4:21 PM
Subject: Why use SOAP in Java


> Hi,
>
> I am wondering why use SOAP with Java?
> Since SOAP is based on RPC, I think the best question may be asked, why 
> use RPC for client-server application?

Web Browser ---(HTTP) ---  Tomcat Servlet/JSP

Java/C/VB/.Net Application  -----(Soap) ---- Tomcat Server (Axis)

Java Application ------- (RMI) ------- Application Server (Beans)

Browser Served Applications  -----(HTTP)------  Tomcat Harbor (Applications)

Its all related - protocols ontop of protocols, ie SOAP is an XML format 
ontop of HTTP
And there is a lot of overlap, a programmer may decide to use a HTTP client 
and call (POST or GET) for a simple value from a Tomcat, whereas SOAP would 
translate parameters for you.

Probably the most general technology out there is browser against web 
server, but sometimes the others are more useful... for example a remote 
.Net programmer wants to call a function (web service) (soap) that you have 
written in java on (axis) tomcat (in theory anyway).

But you need to study all these technologies because there is no perfect 
solution.
Soap is quite slow, Ejb is hard to learn and servers are all different, but 
well supported, Harbor is made by a crazy guy that loves Tomcat and doesnt 
want to use anything else;)

If you can use a servlet (Tomcat) against a browser.... always a good 
solution that one wants to move away from reluctantly... my feeling anyway.

Have fun...


> Thanks
>
---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
Making the Java dream come true.
--------------------------------------------------------------------------- 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Why use SOAP in Java

Posted by "Mark H. Wood" <mw...@IUPUI.Edu>.
I wonder if the real question here is not more like:  what advantage
does one gain in using RPC rather than some other method?  I must
admit that I sometimes ask myself that question.  I must also admit
that this whole thread is too general to be topical on the Tomcat list.

-- 
Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.


Re: Why use SOAP in Java

Posted by Kristian Rink <kr...@zimmer428.net>.
Am Wed, 9 Apr 2008 07:21:29 -0700 (PDT)
schrieb Sam Wun <sa...@yahoo.com>:

> I am wondering why use SOAP with Java?
> Since SOAP is based on RPC, I think the best question may be asked,
> why use RPC for client-server application?

Well... let's put it another way: Why not use SOAP and/or RPC for
client-server applications? Isn't RMI per definition also sort of RPC
if you keep it "straight" Java? Good thing about doing RPC in a
SOAP-like way is that you virtually can create a client-server system
without requiring any of the both parts to be implemented in Java, as
it is easy to, say, call server-sided Java "procedures" from a system
implemented in Python, .NET, Perl or whatever could come to your mind...

Cheers,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org