Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2002 10:28:49 -0700
From:      Christopher Elkins <chrise@scardini.com>
To:        j mckitrick <jcm@FreeBSD-uk.eu.org>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: Web services, Java, and FreeBSD questions
Message-ID:  <AE238EBE-86CE-11D6-B48A-0003936808BE@scardini.com>
In-Reply-To: <20020623134209.A23899@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sunday, June 23, 2002, at 05:42  AM, j mckitrick wrote:

> I've been learning about web services, and I'd like to try my hand at
> some basic Java RPC calls with XML/Soap.  I've seen several approaches,
> using Apache Axis, Apache SOAP, or the Java Web Services kit.
>
> I'm a little unsure which one would be the best (read: simplest) to
> learn on.  All I really want to do is experiment with XML RPC calls to
> localhost.  I need to figure out if the Java kit from Sun is best, 
> which
> wraps RPC calls into JAXRPC, or to stick with the Apache SOAP
> implementation, with either SOAP or Axis.  The approaches are quite
> different, so I'd rather just learn one or the other right now.
>
> I'm having trouble with the Java config.xml and web.xml setups, and
> getting Tomcat to load the servers.
>
> Does anyone have any suggestions?

Unless you have a specific desire to learn SOAP (the protocol, not the
Apache project of the same name), you might consider looking at XML-RPC
(the protocol). For all intents and purposes, XML-RPC is the primordial
ooze from which SOAP evolved.

Specification: <http://www.xmlrpc.com/>;
Apache Java Implementation: <http://xml.apache.org/xmlrpc/>;

IMO, Apache SOAP is probably the easiest to learn (of the three projects
you mention). It doesn't support some of the more recent SOAP 
developments
(e.g., WSDL, UDDI) and has the performance disadvantage of using DOM
instead of SAX in the XML pipeline. However, for learning purposes it's
fairly easy to get some basic services working.

Apache Axis is essentially a re-write of Apache SOAP to support the
latest SOAP protocols and improve performance (and thankfully remove the
name collision between project and protocol).

JAXRPC (along with JAXM) is Sun's attempt at creating generic APIs for
XML-based message-passing (both synchronous and asynchronous). The
distribution consists of interfaces and a reference implementation. It
is an express goal of Axis's to implement the JAXRPC interfaces.

My recommendation: get your feet wet with either Apache XML-RPC or 
Apache
SOAP. Then, if you're still interested start learning JAXRPC. 
Ideally, in
the future it'll be possible to plug-in any SOAP implementation in a
similar manner to XML parsers today (via JAXP).

--
Christopher Elkins


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AE238EBE-86CE-11D6-B48A-0003936808BE>