Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 81128 invoked from network); 9 Oct 2006 15:56:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 15:56:48 -0000 Received: (qmail 94500 invoked by uid 500); 9 Oct 2006 15:56:41 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 94235 invoked by uid 500); 9 Oct 2006 15:56:40 -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 94224 invoked by uid 99); 9 Oct 2006 15:56:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 08:56:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.93.152.138] (HELO mail.vivisimo.com) (69.93.152.138) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 08:56:38 -0700 Received: from mail.office.vivisimo.com (office.vivisimo.com [206.210.89.21]) by mail.vivisimo.com (8.12.11.20060308/8.12.11) with ESMTP id k99FuH4G014649 for ; Mon, 9 Oct 2006 11:56:18 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.office.vivisimo.com (Postfix) with ESMTP id D184535E53E for ; Mon, 9 Oct 2006 11:56:16 -0400 (EDT) X-Virus-Scanned: amavisd-new at vivisimo.com Received: from mail.office.vivisimo.com ([127.0.0.1]) by localhost (office.mail.vivisimo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V6VfSfoLQ649 for ; Mon, 9 Oct 2006 11:56:16 -0400 (EDT) Received: from [192.168.0.20] (unknown [192.168.0.20]) by mail.office.vivisimo.com (Postfix) with ESMTP id 36EA935E53D for ; Mon, 9 Oct 2006 11:56:16 -0400 (EDT) Message-ID: <452A711F.3040006@vivisimo.com> Date: Mon, 09 Oct 2006 11:56:15 -0400 From: Jake Goulding User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: [axis2] how to get raw XML of result References: <452A5789.4090406@vivisimo.com> <19e0530f0610090758v11a5cf2q261200c3ea49057c@mail.gmail.com> <452A6577.6010501@vivisimo.com> <19e0530f0610090821k3f4467c3v1f82e6876efc6d79@mail.gmail.com> <452A698E.1040109@vivisimo.com> <19e0530f0610090834h53ec403aqfda4338e81afb272@mail.gmail.com> In-Reply-To: <19e0530f0610090834h53ec403aqfda4338e81afb272@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N That seems very promising, thanks! You have any tips on how to use the XmlStreamReader? Preferably, I'd just stick it into a DOM-based structure. Thanks again! Davanum Srinivas wrote: > There are several more options :) Trying to start with the ones you > can maintain w/o too much effort. > > Next on the list, You can get an XMLStreamReader from the ADBBean > using getPullParser, you can check the generated code for the QName > (search for MY_QNAME), use that as the parameter for getPullParser(). > This returns the stax javax.xml.stream.XMLStreamReader which you can > use to do whatever you want. > > Example: > XMLStreamReader reader = myBean.getPullParser(myBean.MY_QNAME); > > -- dims > > On 10/9/06, Jake Goulding wrote: >> I assume that there is no middle ground? Some way of getting the raw >> version provided by -d and the functions from the databinding? Or can I >> not have my cake and eat it too? >> >> Thanks! >> >> Davanum Srinivas wrote: >> > The second option is to run wsdl2java with "-d none" which does not >> > generate any databinding at all and you have complete control. So you >> > will have to construct the request by hand and you get full control >> > over the response as well. >> > >> > -- dims >> > >> > On 10/9/06, Jake Goulding wrote: >> >> Well, I don't control the WSDL (Microsoft Sharepoint). I could modify >> >> the WSDL by hand, and make it different from the actual WSDL, but >> that >> >> seems kind of nasty, but I can do it if need be. Any other options? >> >> >> >> Thanks! >> >> >> >> Davanum Srinivas wrote: >> >> > Typically, we ask you to specify that as xsd:any and the codegen >> >> > creates an OMElement as the method param or java bean param >> which you >> >> > can then use to get your data. >> >> > >> >> > Is it possible for you to do this? >> >> > >> >> > -- dims >> >> > >> >> > On 10/9/06, Jake Goulding wrote: >> >> >> I'd like to get the raw XML node representing a part of my >> returned >> >> >> message. It looks like getOMElement() should be the right thing to >> >> call, >> >> >> but I'm not sure what to pass it. >> >> >> >> >> >> Can anyone tell me if this is the right thing to be looking at, >> >> and if >> >> >> so, how to use it? >> >> >> >> >> >> -- >> >> >> >> >> >> JAKE GOULDING >> >> >> Software Engineer >> >> >> goulding@vivisimo.com >> >> >> >> >> >> Viví­simo [Search Done Right™] >> >> >> 1710 Murray Avenue >> >> >> Pittsburgh, PA 15217 USA >> >> >> tel: +1.412.422.2499 x105 >> >> >> fax: +1.412.422.2495 >> >> >> vivisimo.com clusty.com >> >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> -- >> >> >> >> JAKE GOULDING >> >> Software Engineer >> >> goulding@vivisimo.com >> >> >> >> Viví­simo [Search Done Right™] >> >> 1710 Murray Avenue >> >> Pittsburgh, PA 15217 USA >> >> tel: +1.412.422.2499 x105 >> >> fax: +1.412.422.2495 >> >> vivisimo.com clusty.com >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> >> For additional commands, e-mail: axis-user-help@ws.apache.org >> >> >> >> >> > >> > >> >> -- >> >> JAKE GOULDING >> Software Engineer >> goulding@vivisimo.com >> >> Viví­simo [Search Done Right™] >> 1710 Murray Avenue >> Pittsburgh, PA 15217 USA >> tel: +1.412.422.2499 x105 >> fax: +1.412.422.2495 >> vivisimo.com clusty.com >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> For additional commands, e-mail: axis-user-help@ws.apache.org >> >> > > -- JAKE GOULDING Software Engineer goulding@vivisimo.com Viví­simo [Search Done Right™] 1710 Murray Avenue Pittsburgh, PA 15217 USA tel: +1.412.422.2499 x105 fax: +1.412.422.2495 vivisimo.com clusty.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org