1 Reply Latest reply on Jan 24, 2006 5:37 AM by Heiko Braun

    Handler Registry problem: components should not use the getH

    Xinjun LUO Newbie

      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