Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3956

JAX-WS HandlerResolver consulted for ServiceImpl.createPort, but not for createDispatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.8, 2.4.5, 2.5.1
    • None
    • None
    • Unknown

    Description

      Using 2.5.0, service.setHandlerResolver has no effect when later creating a Dispatch:

      Service service = Service.create(wsdl, SERVICE_QNAME);
      service.setHandlerResolver(new MyHandlerResolver());

      Dispatch<SOAPMessage> dispatch = service.createDispatch(PORT_QNAME, SOAPMessage.class, Service.Mode.MESSAGE);
      List<Handler> handlerChain = dispatch.getBinding().getHandlerChain();
      handlerChain.add(new SomeHandler());
      dispatch.getBinding().setHandlerChain(handlerChain);

      SomeHandler is invoked, but any handlers returned by MyHandlerResolver.getHandlerChai() are ignored.

      Is this a bug in the CXF JAW-WS implementation?

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            eirbjo Eirik Bjorsnos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: