Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 99215 invoked from network); 6 May 2008 21:00:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 May 2008 21:00:11 -0000 Received: (qmail 41364 invoked by uid 500); 6 May 2008 21:00:03 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 41354 invoked by uid 500); 6 May 2008 21:00:03 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 41343 invoked by uid 99); 6 May 2008 21:00:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 14:00:03 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [97.66.21.242] (HELO mail.biosignia.com) (97.66.21.242) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 20:59:18 +0000 From: "Parham, Clinton" To: "axis-user@ws.apache.org" Date: Tue, 6 May 2008 16:59:29 -0400 Subject: Basic Axis/Axiom usage question Message-ID: Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BF2E1C0B2CC2FC46B545C0D61A152CEE06A6961E53BIOSRV05ns200_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_BF2E1C0B2CC2FC46B545C0D61A152CEE06A6961E53BIOSRV05ns200_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello. I'm getting my feet wet with Axis & Axiom and something is just not clickin= g for me. Let's say I have a web service method that accepts and returns OM= Elements. The web service receives some data and builds a java.util.Collect= ion of results objects that I need to send back as an XML payload in the re= sponse. What is the correct (most efficient memory-wise) way to do this? Do I merel= y use factory.createOMElement / element.addAttribute to recreate the Collec= tion objects in XML? Or, do I use something more elaborate like somehow wra= pping the Collection with OMSourcedElementImpl and using OMDataSource? Some guidance and pointers to a similar example would be appreciated. Thank you, Clinton --_000_BF2E1C0B2CC2FC46B545C0D61A152CEE06A6961E53BIOSRV05ns200_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello.

 

I’m getting my feet wet with Axis & Axiom an= d something is just not clicking for me. Let’s say I have a web service method th= at accepts and returns OMElements. The web service receives some data and buil= ds a java.util.Collection of results objects that I need to send back as an XML = payload in the response.

 

What is the correct (most efficient memory-wise) way t= o do this? Do I merely use factory.createOMElement / element.addAttribute to recreate = the Collection objects in XML? Or, do I use something more elaborate like someh= ow wrapping the Collection with OMSourcedElementImpl and using OMDataSource?=

 

Some guidance and pointers to a similar example would = be appreciated.

 

Thank you,

Clinton

 

--_000_BF2E1C0B2CC2FC46B545C0D61A152CEE06A6961E53BIOSRV05ns200_--