Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 65233 invoked from network); 7 Aug 2009 16:38:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Aug 2009 16:38:45 -0000 Received: (qmail 95923 invoked by uid 500); 7 Aug 2009 16:38:52 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 95842 invoked by uid 500); 7 Aug 2009 16:38:52 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 95832 invoked by uid 99); 7 Aug 2009 16:38:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 16:38:52 +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 (athena.apache.org: domain of eamdwyercxf@hotmail.com designates 65.55.90.231 as permitted sender) Received: from [65.55.90.231] (HELO snt0-omc4-s28.snt0.hotmail.com) (65.55.90.231) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 16:38:41 +0000 Received: from SNT121-W43 ([65.55.90.201]) by snt0-omc4-s28.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 7 Aug 2009 09:38:20 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_347b5a30-4bae-4e29-938c-d1384edcb663_" X-Originating-IP: [62.17.23.35] From: Eamonn Dwyer To: Subject: RE: Capturing the JaxRS outbound request data Date: Fri, 7 Aug 2009 17:38:20 +0100 Importance: Normal In-Reply-To: <24863892.post@talk.nabble.com> References: <24863892.post@talk.nabble.com> MIME-Version: 1.0 X-OriginalArrivalTime: 07 Aug 2009 16:38:20.0992 (UTC) FILETIME=[797AC400:01CA177D] X-Virus-Checked: Checked by ClamAV on apache.org --_347b5a30-4bae-4e29-938c-d1384edcb663_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Sergey the LoggingOutInterceptor can capture the data from various locations (from= the message) and build up a log representing the outbound request but I do= nt think its the EXACT data being sent to the server as the HTTP request. I= am writing an interceptor that monitors the data passed from the client to= server and I want to get it exactly.=20 My last patch was for something a bit different - it stopped calls to conne= ction.getResponseCode() if an exception was thrown on the outbound intercep= tor chain - Dan applied that patch and it seems to be working fine now. Regs Eamonn > Date: Fri=2C 7 Aug 2009 05:24:55 -0700 > From: sergey.beryozkin@iona.com > To: dev@cxf.apache.org > Subject: Re: Capturing the JaxRS outbound request data >=20 >=20 > Hi Eamonn >=20 > Perhaps you can do the same way the (out) logging interceptor does it ? C= an > it capture the outbound message on the client side ? >=20 > > connection.getResponseCode() >=20 > I thought your latest patch has fixed it ? >=20 > thanks=2C Sergey >=20 >=20 > Eamonn Dwyer-2 wrote: > >=20 > >=20 > > Hi > > is there a way of getting the exact stream of data sent by a JaxRS clie= nt > > to the service. As far as I can make out the JaxRS client populates the > > HttpURLConnection directly with the data and the call to > > connection.getResponseCode() results in the HttpURLConnection marshalli= ng > > up the data and sending it on the wire. I don't see how I can get a hoo= k > > to get the raw data. > >=20 > > The issue doesn't seem to be the affect the response because in that ca= se > > the JaxRSOutInterceptor comes into play and it writes the data to the > > CacheAndWriteOutputStream first. > >=20 > > Thanks in advance > > Eamonn > >=20 > > _________________________________________________________________ > > What can you do with the new Windows Live? Find out > > http://www.microsoft.com/windows/windowslive/default.aspx > >=20 >=20 > --=20 > View this message in context: http://www.nabble.com/Capturing-the-JaxRS-o= utbound-request-data-tp24848337p24863892.html > Sent from the cxf-dev mailing list archive at Nabble.com. >=20 _________________________________________________________________ What can you do with the new Windows Live? Find out http://www.microsoft.com/windows/windowslive/default.aspx= --_347b5a30-4bae-4e29-938c-d1384edcb663_--