axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nsonwu, Alexandra" <Alexandra.Nso...@am.sony.com>
Subject RE: Help with Intercepting SOAP messages
Date Sat, 24 Aug 2002 00:45:13 GMT
Hi:

I am a newbie. After configuring the server-config.wsdd with the handler
information provided below, where does the server log the messages to? Do
you need to provide a log file name? 

Thanks,

Alex

-----Original Message-----
From: Tom Jordahl [mailto:tomj@macromedia.com]
Sent: Wednesday, August 21, 2002 7:49 AM
To: 'axis-user@xml.apache.org'
Subject: RE: Help with Intercepting SOAP messages



Look at org.apache.axis.handlers.LogHandler for an example of a handler
which writes the input and output XML data to a file.

This handler would be configured in the server-config.wsdd file like so:
 <handler name="log" type="java:org.apache.axis.handlers.LogHandler"/>
 <globalConfiguration>
  <requestFlow>
   <handler type="log"/>
  </requestFlow>
  <responseFlow>
   <handler type="log"/>
  </responseFlow>
 </globalConfiguration>

--
Tom Jordahl
Macromedia Server Development



-----Original Message-----
From: Ulrich Winter [mailto:ulrich.winter@gmx.de]
Sent: Wednesday, August 21, 2002 10:28 AM
To: axis-user@xml.apache.org
Subject: Re: Help with Intercepting SOAP messages


Instead of intercepting the soap message at the http transport layer in the
servlet engine, you should consider writing a custom axis handler.

Axis is designed for plugging in MessageHandler which could process parts of
the soap message before or after the service is invoked.

Look at the architecture doc for more details.
There is also a book, where this is described in more detail:
AXIS: The next generation of Java SOAP
by Romin Irani, S Jeelani Basha
http://www.amazon.com/exec/obidos/tg/detail/-/1861007159

Uli

----- Original Message -----
From: <santosh.joshi@bt.com>
To: <axis-user@xml.apache.org>
Sent: Wednesday, August 21, 2002 3:51 PM
Subject: Help with Intercepting SOAP messages


> All,
>
> I was hoping for some guidance on SOAP message interception mechanism.
>
> I am using Tomcat 4.0.3, using AXIS Beta 3 and in accordance to Servlet
2.3
> I have defined a Filter which filters all requests going to the AXIS
> Servlet.
>
> The SOAP body is passed through in an ServletInputStream which I can read,
> then for audit trailing, get other information from ServletRequest object
> and log it. This is all working fine, which is good.
>
> BUT the AXIS Servlet does not seem to read the ServletInputStream any
> longer. Does it mean that if the ServletInputStream is read once then it
> cannot be read twice?
>
> I attempted reset method on ServletInputStream, which is not supported!!!
> Hence it did not help.
>
> Does it imply that SOAP messages served by AXIS on Tomcat, cannot be audit
> trailed, or am I being a dumbo -)
>
> Please advise/suggest .....
>
> Regards and TIA,
>
> Santosh
>

Mime
View raw message