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 <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]