From owner-freebsd-java Sun Jun 23 10:28:55 2002 Delivered-To: freebsd-java@freebsd.org Received: from hronir.scardini.com (dsl-209-162-215-176.easystreet.com [209.162.215.176]) by hub.freebsd.org (Postfix) with ESMTP id D029037B400 for ; Sun, 23 Jun 2002 10:28:50 -0700 (PDT) Received: from orbis.lan.scardini.com (orbis.lan.scardini.com [192.168.2.103]) by hronir.scardini.com (8.11.6/8.11.6) with ESMTP id g5NHSoU60935 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Sun, 23 Jun 2002 10:28:50 -0700 (PDT) (envelope-from chrise@scardini.com) Date: Sun, 23 Jun 2002 10:28:49 -0700 Subject: Re: Web services, Java, and FreeBSD questions Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) Cc: freebsd-java@FreeBSD.ORG To: j mckitrick From: Christopher Elkins In-Reply-To: <20020623134209.A23899@dogma.freebsd-uk.eu.org> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.482) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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: Apache Java Implementation: 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