Hi,
I have been trying to apply handlers to the client side. I did not create any client-side stubs, just used jboss-ws4ee-client.jar, axis-ws4ee.jar, etc. Everything seems ok, like the WS publication and simple client calls. Then I tried to register a data hanlder at the client side in the followng way:
....
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(wsdlUrl, qname);
HandlerRegistry hr = service.getHandlerRegistry();
but failed due to this exception:
Exception in thread "main" java.lang.UnsupportedOperationException: Components should not use the getHandlerRegistry() method.
at org.jboss.webservice.client.ServiceImpl.getHandlerRegistry(ServiceImpl.java:164)
Is this a known problem?
Any help is appreciated!
Xinjun
In J2EE 1.4 access to the handler registry is disallowed.
Take a look at this post:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=75172