Re: Why use SOAP in Java

2008-04-13 Thread Johnny Kewl



- Original Message - 
From: Sam Wun [EMAIL PROTECTED]

To: users@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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why use SOAP in Java

2008-04-09 Thread Kristian Rink
Am Wed, 9 Apr 2008 07:21:29 -0700 (PDT)
schrieb Sam Wun [EMAIL PROTECTED]:

 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: [EMAIL PROTECTED] * 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why use SOAP in Java

2008-04-09 Thread Mark H. Wood
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   [EMAIL PROTECTED]
Typically when a software vendor says that a product is intuitive he
means the exact opposite.



pgpZ4rN15tb8D.pgp
Description: PGP signature