axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eran Chinthaka <chinth...@opensource.lk>
Subject [Fwd: [Axis2] How to add a phase by code on a Axis2 client]
Date Sun, 23 Dec 2007 14:31:47 GMT
forwarding this mail to dev list, so the people who really know the code 
will answer.

-------- Original Message --------
Subject: [Axis2] How to add a phase by code on a Axis2 client
Date: Thu, 15 Nov 2007 18:36:57 +0100
From: Guido Wischrop <wischrop@googlemail.com>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org

Hello,
I'm using axis2 1.3 and I want to log the SOAP envelop on outgoing
client messages without using the HTTPClient logger. So I want to add
a Axis2LogPhase. Can I do this by code i.e. without creating a
axis2.xml? I looked in the api doc and I found the PhasesInfo class
and I'm asking if this would work:

//-------untested--------

         AxisConfiguration axisConf =
serviceStub._getServiceClient().getAxisConfiguration();
         ArrayList<Phase> phasesList = 
axisConf.getPhasesInfo().getOUTPhases();
         Phase logPhase = new Phase("Axis2LogPhase");
         logPhase.addHandler(new Axis2LogHandler());
         phasesList.add(logPhase);
         axisConf.getPhasesInfo().setOUTPhases(phasesList);

//-------untested off--------

This might be totally wrong.

Thanks for any help,
Guido

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message