You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bartolomeo Nicolotti <bn...@siapcn.it> on 2008/09/10 15:13:59 UTC
Log SOAP Message with HTTP
Hi,
how can I log the SOAP Message sent by axis2 with HTTP headers?
Many thanks in advance.
Regards. B.Nicolotti
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Fwd: Log SOAP Message with HTTP
Posted by Eran Chinthaka <er...@gmail.com>.
Yep, that code is for a client.
On Thu, Sep 11, 2008 at 3:07 AM, Bartolomeo Nicolotti
<bn...@siapcn.it>wrote:
> Ops,
>
> the link is:
>
> http://wso2.org/blog/dims/1554
>
> Bye
>
> Il giorno gio, 11/09/2008 alle 08.21 +0200, Bartolomeo Nicolotti ha
> scritto:
>
> Hi,
> many thanks, I've found also this,
> How do i log all HTTP/HTTPS traffic from an Axis2 Client? | WSO2 OxygenTank
> Bye!
> Il giorno mer, 10/09/2008 alle 19.49 -0400, Eran Chinthaka ha scritto:> > > ---------- Forwarded message ----------> From: Eran Chinthaka <er...@gmail.com>> Date: Wed, Sep 10, 2008 at 7:48 PM> Subject: Re: Log SOAP Message with HTTP> To: axis-user@ws.apache.org.> > > If you want to just view the messages, then use TCP monitor.> > But if you want to log them within Axis2 engine, then follow this[1]> to write a module to print SOAP message. Then inside the handler class> add following line of code to get HTTP headers. > > TransportHeaders headers => msgContext.getProperty(MessageContext.TRANSPORT_HEADERS);> > TransportHeaders class is a map, with <String, String>. So treat it as> a map and print it. > > HTH.> Chinthaka> > [1] : http://ws.apache.org/axis2/1_1/modules.html> > > > On Wed, Sep 10, 2008 at 9:13 AM, Bartolomeo Nicolotti> <bn...@siapcn.it> wrote:> Hi,> > how can I log the SOAP Message sent by axis2 with HTTP> headers?> > Many thanks in advance.> > Regards. B.Nicolotti> > > ---------------------------------------------------------------------> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional commands, e-mail: axis-user-help@ws.apache.org> > > > > > -- > With Mettha,> Eran Chinthaka> > --------------------------------------------------------------------> Health is the greatest gift; contentment is the greatest wealth;> trusting is the best relationship; nirvana is the highest joy. -> Dhammapada> > > > > -- > With Mettha,> Eran Chinthaka> > --------------------------------------------------------------------> Health is the greatest gift; contentment is the greatest wealth;> trusting is the best relationship; nirvana is the highest joy. -> Dhammapada>
>
> ---------------------------------------------------------------------To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.orgFor additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
With Mettha,
Eran Chinthaka
--------------------------------------------------------------------
Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada
Re: Fwd: Log SOAP Message with HTTP
Posted by Bartolomeo Nicolotti <bn...@siapcn.it>.
Ops,
the link is:
http://wso2.org/blog/dims/1554
Bye
Il giorno gio, 11/09/2008 alle 08.21 +0200, Bartolomeo Nicolotti ha
scritto:
> Hi,
>
> many thanks, I've found also this,
>
> How do i log all HTTP/HTTPS traffic from an Axis2 Client? | WSO2 Oxygen
> Tank
>
> Bye!
>
> Il giorno mer, 10/09/2008 alle 19.49 -0400, Eran Chinthaka ha scritto:
> >
> >
> > ---------- Forwarded message ----------
> > From: Eran Chinthaka <er...@gmail.com>
> > Date: Wed, Sep 10, 2008 at 7:48 PM
> > Subject: Re: Log SOAP Message with HTTP
> > To: axis-user@ws.apache.org.
> >
> >
> > If you want to just view the messages, then use TCP monitor.
> >
> > But if you want to log them within Axis2 engine, then follow this[1]
> > to write a module to print SOAP message. Then inside the handler class
> > add following line of code to get HTTP headers.
> >
> > TransportHeaders headers =
> > msgContext.getProperty(MessageContext.TRANSPORT_HEADERS);
> >
> > TransportHeaders class is a map, with <String, String>. So treat it as
> > a map and print it.
> >
> > HTH.
> > Chinthaka
> >
> > [1] : http://ws.apache.org/axis2/1_1/modules.html
> >
> >
> >
> > On Wed, Sep 10, 2008 at 9:13 AM, Bartolomeo Nicolotti
> > <bn...@siapcn.it> wrote:
> > Hi,
> >
> > how can I log the SOAP Message sent by axis2 with HTTP
> > headers?
> >
> > Many thanks in advance.
> >
> > Regards. B.Nicolotti
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> >
> > --
> > With Mettha,
> > Eran Chinthaka
> >
> > --------------------------------------------------------------------
> > Health is the greatest gift; contentment is the greatest wealth;
> > trusting is the best relationship; nirvana is the highest joy. -
> > Dhammapada
> >
> >
> >
> >
> > --
> > With Mettha,
> > Eran Chinthaka
> >
> > --------------------------------------------------------------------
> > Health is the greatest gift; contentment is the greatest wealth;
> > trusting is the best relationship; nirvana is the highest joy. -
> > Dhammapada
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
Re: Fwd: Log SOAP Message with HTTP
Posted by Bartolomeo Nicolotti <bn...@siapcn.it>.
Hi,
many thanks, I've found also this,
How do i log all HTTP/HTTPS traffic from an Axis2 Client? | WSO2 Oxygen
Tank
Bye!
Il giorno mer, 10/09/2008 alle 19.49 -0400, Eran Chinthaka ha scritto:
>
>
> ---------- Forwarded message ----------
> From: Eran Chinthaka <er...@gmail.com>
> Date: Wed, Sep 10, 2008 at 7:48 PM
> Subject: Re: Log SOAP Message with HTTP
> To: axis-user@ws.apache.org.
>
>
> If you want to just view the messages, then use TCP monitor.
>
> But if you want to log them within Axis2 engine, then follow this[1]
> to write a module to print SOAP message. Then inside the handler class
> add following line of code to get HTTP headers.
>
> TransportHeaders headers =
> msgContext.getProperty(MessageContext.TRANSPORT_HEADERS);
>
> TransportHeaders class is a map, with <String, String>. So treat it as
> a map and print it.
>
> HTH.
> Chinthaka
>
> [1] : http://ws.apache.org/axis2/1_1/modules.html
>
>
>
> On Wed, Sep 10, 2008 at 9:13 AM, Bartolomeo Nicolotti
> <bn...@siapcn.it> wrote:
> Hi,
>
> how can I log the SOAP Message sent by axis2 with HTTP
> headers?
>
> Many thanks in advance.
>
> Regards. B.Nicolotti
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
> --
> With Mettha,
> Eran Chinthaka
>
> --------------------------------------------------------------------
> Health is the greatest gift; contentment is the greatest wealth;
> trusting is the best relationship; nirvana is the highest joy. -
> Dhammapada
>
>
>
>
> --
> With Mettha,
> Eran Chinthaka
>
> --------------------------------------------------------------------
> Health is the greatest gift; contentment is the greatest wealth;
> trusting is the best relationship; nirvana is the highest joy. -
> Dhammapada
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Fwd: Log SOAP Message with HTTP
Posted by Eran Chinthaka <er...@gmail.com>.
---------- Forwarded message ----------
From: Eran Chinthaka <er...@gmail.com>
Date: Wed, Sep 10, 2008 at 7:48 PM
Subject: Re: Log SOAP Message with HTTP
To: axis-user@ws.apache.org.
If you want to just view the messages, then use TCP monitor.
But if you want to log them within Axis2 engine, then follow this[1] to
write a module to print SOAP message. Then inside the handler class add
following line of code to get HTTP headers.
TransportHeaders headers =
msgContext.getProperty(MessageContext.TRANSPORT_HEADERS);
TransportHeaders class is a map, with <String, String>. So treat it as a map
and print it.
HTH.
Chinthaka
[1] : http://ws.apache.org/axis2/1_1/modules.html
On Wed, Sep 10, 2008 at 9:13 AM, Bartolomeo Nicolotti
<bn...@siapcn.it>wrote:
> Hi,
>
> how can I log the SOAP Message sent by axis2 with HTTP headers?
>
> Many thanks in advance.
>
> Regards. B.Nicolotti
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
With Mettha,
Eran Chinthaka
--------------------------------------------------------------------
Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada
--
With Mettha,
Eran Chinthaka
--------------------------------------------------------------------
Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada