Return-Path: Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: (qmail 79613 invoked from network); 7 Mar 2011 11:42:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Mar 2011 11:42:32 -0000 Received: (qmail 59583 invoked by uid 500); 7 Mar 2011 11:42:31 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 59511 invoked by uid 500); 7 Mar 2011 11:42:31 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 59503 invoked by uid 99); 7 Mar 2011 11:42:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2011 11:42:31 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FROM_MISSP_EH_MATCH,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [85.13.145.237] (HELO dd27104.kasserver.com) (85.13.145.237) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2011 11:42:24 +0000 Received: from dd27104.kasserver.com (dd0801.kasserver.com [85.13.143.205]) by dd27104.kasserver.com (Postfix) with SMTP id 8383F1E600DB for ; Mon, 7 Mar 2011 12:42:02 +0100 (CET) In-Reply-To: Subject: Re: Re: Request/Response log from: "Nikolaus Krismer" to: java-user@axis.apache.org MIME-Version: 1.0 X-SenderIP: 81.223.215.34 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20110307114202.8383F1E600DB@dd27104.kasserver.com> Date: Mon, 7 Mar 2011 12:42:02 +0100 (CET) Hi Thushanga! That should be possible. Although i only wrote modules for the service-side until now, it should work the same way on the client side. You have to build a mar file for your module, so that you can copy it in the module directory that uses axis2 (see http://axis.apache.org/axis2/java/core/docs/quickstartguide.html for more information on the axis2 directory structure). Afterwards you have to deploy the module in the axis2 context and engage it for the stub. More information on modules can also be found here: http://www.packtpub.com/article/apache-axis2-web-services-writing-module Regards, Niko ----- Original Message ----- From: dombagolla@gmail.com To: java-user@axis.apache.org Date: 07.03.2011 11:33:35 Subject: Re: Request/Response log > Great Thanks, > > I ll try this , can you help me little bit further as am very new to axis2. > > i am going to create this client project as a jar library and put it under > my main project ,there are number of clients as this is. > > so i use java project not a web project , inside that i have only generated > ServiceStub , ServiceCallbackHandler and the axis2 jars. > > as you saying i have to write a module to get this done. is it possible with > this way. > > Please help , give me a clue that what i am doing is right. > > Thanks you so much. > > Thushanga. > > > > > On Mon, Mar 7, 2011 at 3:41 PM, Nikolaus Krismer wrote: > > > Hello, > > > > you could do this by using a module. > > By calling "messageContext.getEnvelope().toString()" in the > > invoke(MessageContext) method of the module (don't forget to check with > > messageContext.isEngaged("nameOfModule")), you can access the soap message. > > > > Be careful with this when sending attachments (there might be a better way > > to log the soap, when using attachments). > > > > Regards, > > Niko > > > > ----- Original Message ----- > > From: dombagolla@gmail.com > > To: java-user@axis.apache.org > > Date: 07.03.2011 11:03:52 > > Subject: Request/Response log > > > > > > > Dear all, > > > > > > > > > I created axis2 client. > > > > > > > > > I want log all the request/response XMLs to files for later references. > > > > > > > > > Please somebody help me to get started this, how can I do this. > > > > > > > > > Thank you. > > > > > > Thushanga. > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org > > For additional commands, e-mail: java-user-help@axis.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org For additional commands, e-mail: java-user-help@axis.apache.org