axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolaus Krismer"<r...@krismer.de>
Subject Re: Re: Request/Response log
Date Mon, 07 Mar 2011 11:42:02 GMT
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


Mime
View raw message