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 :

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)