Deepak,
if you can get a reference to the configuration context you can do
something like this:
AxisService service = Utils.createSimpleService(new QName("EchoXml"),
new RawXMLINOutMessageReceiver(),
EchoXML.class.getName(),
new QName("echo"));
service.setScope(Constants.SCOPE_REQUEST);
// service.setEnableAllTransports(true);
final AxisConfiguration axisConfiguration =
this.configurationContext
.getAxisConfiguration();
axisConfiguration.addService(service);
HandlerDescription description = new
HandlerDescription("MyHandler");
description.setHandler(new MyHandler());
ArrayList<Phase> phasesList =
axisConfiguration.getOutFlowPhases();
Phase myPhase = new Phase("MyPhase");
myPhase.addHandler(description);
phasesList.add(0, myPhase);
axisConfiguration.setOutFaultPhases(phasesList);
HTH,
Michele
On 10 Jan 2008, at 12:53, Deepak Vishwakarma wrote:
Hi,
I am using IBM Websphere Application Server and Web Service
Feature Pack version 6.1. I want to write a custom handler which I
have to inject it in Axis2 Soap Engine Phases. I could get some
material but they were not helpful enough since i don't want to use
the module approach, i just need to write a plain handler.
It would be very helpful if i can get some pointers and concrete
information on how to achieve this with respect to websphere.
Thanks in advance for your help.
Deepak.
Now you can chat without downloading messenger. Click here to know
how.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]