Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 32163 invoked from network); 7 Oct 2009 07:39:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Oct 2009 07:39:58 -0000 Received: (qmail 17188 invoked by uid 500); 7 Oct 2009 07:39:56 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 17129 invoked by uid 500); 7 Oct 2009 07:39:56 -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 17120 invoked by uid 99); 7 Oct 2009 07:39:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2009 07:39:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of amilasuriarachchi@gmail.com designates 209.85.221.171 as permitted sender) Received: from [209.85.221.171] (HELO mail-qy0-f171.google.com) (209.85.221.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2009 07:39:45 +0000 Received: by qyk1 with SMTP id 1so4474343qyk.0 for ; Wed, 07 Oct 2009 00:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=mEDUL9V3xrzC2h3gF/SkGj2+uwiDi5J6Kt0fyq+HYWY=; b=NVn1xXyn3utOnKFRRGmgeIcN1n0nZrXPlSzchTDT86B6/VKbgoClhU6u/eMRCsh2Ce 8ju2bGClv9tTufvM05UOE1+uqnEOF7+DZwQkZnX/ccrwxQDPe+BSp42nmdps3Oll1Lly c1AjU97votQxdRhYL+ZX3HAzL1rN0mBSTQfq4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Xqo6zGsYBMNiErX3j6i4kyu0FjHIBT7ppyGcjhoDrb57YXm1MB/EMPLjuGnbQojWzf LWY6S8mcPHtyy9RVHML5HnpWOKjfSZq1/NF31yldh9SoxyH/jnGsmqCT3F9/Zac5VxOv 8V/J1Wkv84hFm1O5dk6Sr+c4YoBW+N/NNdB4k= MIME-Version: 1.0 Received: by 10.229.119.69 with SMTP id y5mr1279997qcq.100.1254901164318; Wed, 07 Oct 2009 00:39:24 -0700 (PDT) In-Reply-To: <25769238.post@talk.nabble.com> References: <25769238.post@talk.nabble.com> Date: Wed, 7 Oct 2009 13:09:24 +0530 Message-ID: <60708f4b0910070039m15a1b043tc9ec96a338319aad@mail.gmail.com> Subject: Re: Consume XML using Axis2 without creating Java objects From: Amila Suriarachchi To: axis-user@ws.apache.org Content-Type: multipart/alternative; boundary=000e0cd5ce4420a17b0475537282 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd5ce4420a17b0475537282 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Oct 6, 2009 at 7:27 PM, mule_user wrote: > > Please advise what are my choices for the situation below: > > I receive XML as the input. I have no need (nor, have any intention) of > creating any Java object out of the incoming XML. Could you please explain > how can the incoming XML be consumed using using Axis 2? I may want to > apply > XSLT on the XML. But I have no need (nor have any desire) to create any > Java > object. > > Following are my questions: > 1. What do I have to do to just consume the incoming XML? Please explain > the > steps needed for doing so using Axis2. In other words, I have no need (nor > any desire) to convert the XML into a corresponding Java object. I just > want > to process the XML object as it comes. I may run XSLT on the incoming XML. > I > just want to consume that XML without going through the overhead of > creating > additional Java objects. > > 2. Or, do I still have to execute wsdl2Java and use the generated > client/stub Java classes for processing the XML? > Have a look at here to understand how you can write a custom message receiver[1]. At your message receiver you can get the xmlstream without building the message using this method inMessage.getEnvelope().getBody().getFirstElement().getXMLStreamReaderWithoutCaching() thanks, Amila. [1] http://wso2.org/library/articles/extending-axis2 > > > -- > View this message in context: > http://www.nabble.com/Consume-XML-using-Axis2-without-creating-Java-objects-tp25769238p25769238.html > Sent from the Axis - User mailing list archive at Nabble.com. > > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ --000e0cd5ce4420a17b0475537282 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Oct 6, 2009 at 7:27 PM, mule_use= r <sgho@aol.com>= ; wrote:
http://wso2.org/library/articles/= extending-axis2


--
View this message in context: http://www.nabble.com/Consume-XML-using-Axis2-without-creating-= Java-objects-tp25769238p25769238.html
Sent from the Axis - User mailing list archive at Nabble.com.




--
Amila Suriarachc= hi
WSO2 Inc.
blog: ht= tp://amilachinthaka.blogspot.com/
--000e0cd5ce4420a17b0475537282--