On 11 Jan 2008, at 04:13, Deepak Vishwakarma wrote:
So, does this means that i have to programmatically register the handler in Websphere and can't use the Axis standard way of configuring it in the axis2.xml configuration file.
Yes, you can. However in your first email you said you "don't want to use the module approach", right?
I will try to find out if websphere provides some native api's to get the axis configuration at runtime.Thanks for your help. Michele Mazzucco <[EMAIL PROTECTED]> wrote: 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 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]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]
