Return-Path: Delivered-To: apmail-xml-axis-user-archive@xml.apache.org Received: (qmail 12617 invoked by uid 500); 24 Aug 2002 00:45:37 -0000 Mailing-List: contact axis-user-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@xml.apache.org Received: (qmail 12596 invoked from network); 24 Aug 2002 00:45:36 -0000 Message-ID: From: "Nsonwu, Alexandra" To: "'axis-user@xml.apache.org'" Subject: RE: Help with Intercepting SOAP messages Date: Fri, 23 Aug 2002 17:45:13 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Status: O X-Status: X-Keywords: 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: -- 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: To: 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 >