Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5662

Tests with SwitchYardRunner do not call CXF Interceptors of SOAP Service Binding in Fuse 6.2.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • CXF, SwitchYard
    • None
    • % %
    • Hide

      There is a partial workaround, which does not meet typical customer needs.
      1. <soap:inInterceptors> does not work with SwitchyardRunner, unfortunately. At this moment, you need to use cxf.xml to define in/out interceptors for SOAP binding endpoints.
      2. Even in cxf.xml, somehow cannot be set up on a per endpoint basis. The attached example uses <cxf:bus> instead, which means the interceptor configurations affect all SOAP endpoints in the single SwitchYard application.

      Show
      There is a partial workaround, which does not meet typical customer needs. 1. <soap:inInterceptors> does not work with SwitchyardRunner, unfortunately. At this moment, you need to use cxf.xml to define in/out interceptors for SOAP binding endpoints. 2. Even in cxf.xml, somehow cannot be set up on a per endpoint basis. The attached example uses <cxf:bus> instead, which means the interceptor configurations affect all SOAP endpoints in the single SwitchYard application.
    • Hide

      I've attached a reproducer, which is a minor enhancement of a switchyard quickstart demo project.
      There is only one test class (WebServiceTest), which looks for a HTTP header. This header should be set in the CXF Interceptor, which is unfortunately not called.
      The CXF Interceptor is attached to the SOAP binding in the switchyard.xml and the context mapper also includes everything, so that no header is removed.

      Show
      I've attached a reproducer, which is a minor enhancement of a switchyard quickstart demo project. There is only one test class (WebServiceTest), which looks for a HTTP header. This header should be set in the CXF Interceptor, which is unfortunately not called. The CXF Interceptor is attached to the SOAP binding in the switchyard.xml and the context mapper also includes everything, so that no header is removed.

    Description

      We want to test this functionality by using the SwitchYardRunner and HTTPMixIn test support (as described e.g. in https://docs.jboss.org/author/display/SWITCHYARD/Testing).
      Unfortunately the CXF Interceptors of the tested composites are not called and therefore the tests are useless.

      Attachments

        Activity

          People

            toigaras@redhat.com tomohisa igarashi
            rhn-support-dboeren David Boeren
            Stefan Veres Stefan Veres
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: