Dear Rich,

This will probably of your interest. I am using successfully the log method
in Axis 1.4. It made it working but i didn't investigate all the options,
for example where to store the log file, the log file name, etc. I was only
curious to see if it could work to keep a trace of the message requests and
responses!

In my case it works as follows:

In the client wsdd file add the following code:

<handler name="log" type="java:org.apache.axis.handlers.LogHandler"/>
 <globalConfiguration>

     <requestFlow>
        <handler type="log"/>
      </requestFlow>

      <responseFlow>
         <handler type="log"/>
      </responseFlow>
</globalConfiguration>

This will create a log file by default nammed axis.log and it is in the root
folder of my eclipse project when I run the web service client.

Add this in deploy.wsdd
It is really interesting feature because it logs the REQUEST AND THE
RESPONSES.

<handler name="log" type="java:org.apache.axis.handlers.LogHandler"/>

  <globalConfiguration>

     <requestFlow>
        <handler type="log"/>
      </requestFlow>

      <responseFlow>
         <handler type="log"/>
      </responseFlow>

   </globalConfiguration>


the log file is nammed axis.log and in my case it is stored in
<!-- Logs stored in C:\tomcat5.5.12\bin\axis.log -->


Those links will provide you more information:

http://www.theserverside.com/discussions/thread.tss?thread_id=35765
http://www.google.com/support/adwordsapi/bin/answer.py?answer=15137
http://forum.java.sun.com/thread.jspa?threadID=724190

HOPE THIS HELPS.

CHEERS

Jose Ferreiro
José Ferreiro



2007/5/24, Rich Adili <[EMAIL PROTECTED]>:

Hi dims,

Thanks! That's just what I need for my product design. However, I'm also
babysitting a legacy application written around an Axis1.4 beta, I
forget exactly which beta. Do you know if this technique also applies to
the older code?

Rich

-----Original Message-----
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 23, 2007 3:06 PM
To: [email protected]
Subject: Re: Logging SOAP requests?

Rich,

See http://blogs.cocoondev.org/dims/archives/004668.html

thanks,
dims

On 5/23/07, Rich Adili <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Was thinking in terms of an option that field personnel could flip on
and
> off. Debugging proxies are a bit arduous for such folks. I'm surprised
a
> simple logging mechanism isn't built in.
>
>
>
>  ________________________________
>
>
> From: robert lazarski [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, May 23, 2007 3:01 PM
>  To: [email protected]
>  Subject: Re: Logging SOAP requests?
>
>
>
>
> If you are talking about writing them to a file / db via log4j , look
at the
> modules guide and their howto on writing a logging module:
>
>  http://ws.apache.org/axis2/1_2/modules.html
>
>  If you just want to look at it, try tcpmon or the soapmonitor.
>
>  HTH,
>  Robert
>
>
> On 5/23/07, Rich Adili < [EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> How does one go about logging the outgoing SOAP requests?
>
> Rich Adili
>
>


--
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
José Ferreiro
EPFL Communication Systems engineer
ing.sys.com.dipl.EPFL

Reply via email to