Differences between revisions 2 and 3
Revision 2 as of 2006-04-03 16:29:44
Size: 1769
Comment: missing question mark
Revision 3 as of 2009-09-20 22:48:31
Size: 1775
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
 * Log``Handler.write``To``Console seems broken in Axis 1.3 (see [http://issues.apache.org/jira/browse/AXIS-2455 AXIS-2455])  * Log``Handler.write``To``Console seems broken in Axis 1.3 (see [[http://issues.apache.org/jira/browse/AXIS-2455|AXIS-2455]])
Line 13: Line 13:
Sample of attachment:client-config.wsdd : Sample of [[attachment:client-config.wsdd]] :

How To display SOAP Messages in Axis Client ?

You have to enable the org.apache.axis.handlers.LogHandler declaring this handler in the client-config.wsdd configuration file.

Notes :

  • client-config.wsdd must be dropped at the root of the classpath (e.g. under WEB-INF/classes)
  • LogHandler.writeToConsole seems broken in Axis 1.3 (see AXIS-2455)

Parameter

Description

Optional

Default Value

LogHandler.writeToConsole

If true, output SOAP messages in the console ; otherwise, output in a file.

yes

false

LogHandler.fileName

Specifies the name of the output file when LogHandler.writeToConsole is false

yes

axis.log

Sample of client-config.wsdd :

<?xml version="1.0" encoding="UTF-8"?>
<deployment name="defaultClientConfig"
   xmlns="http://xml.apache.org/axis/wsdd/"
   xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

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

   <globalConfiguration>
      <parameter name="disablePrettyXML" value="false" />
      <requestFlow>
         <handler type="log" />
      </requestFlow>
      <responseFlow>
         <handler type="log" />
      </responseFlow>
   </globalConfiguration>

   <transport name="http"
      pivot="java:org.apache.axis.transport.http.HTTPSender" />
   <transport name="local"
      pivot="java:org.apache.axis.transport.local.LocalSender" />
   <transport name="java"
      pivot="java:org.apache.axis.transport.java.JavaSender" />
</deployment>

FrontPage/Axis/AxisClientConfiguration/ViewSOAPMessages (last edited 2009-09-20 22:48:31 by localhost)