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

Features does not work with a JAX-WS Dispatch Client when defined via spring config.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • None
    • None

    Description

      I have a JAX-WS Dispatch Client which looks as below

      Service service = Service.create(new QName("MyService", "http://com.iona.cxf.type_test"));
      service.addPort(portName, "soap_binding_id", endpointUrl);

      Dispatch<Object> dispatcher = service.createDispatch(portName, ctx, Service.Mode.PAYLOAD);
      JAXBContext jaxbCtx = JAXBContext.newInstance("com.iona.cxf.type_test.jaxbtypes");
      QName portName = new QName("http://com.iona.cxf.type_test", "HttpPort");
      String endpointUrl = "http://localhost:60123/";

      SimpleStruct inObj = new SimpleStruct();
      Object outObj = dispatcher.invoke(inObj);

      Now i have defined cxf configuration snipet
      I don't see the logging interceptors being added or any custom features that i have added to the snipet.

      <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:jaxws="http://cxf.apache.org/jaxws"
      xmlns:core="http://cxf.apache.org/core"
      xsi:schemaLocation="
      http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
      http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

      <jaxws:client name="

      {http://com.iona.cxf.type_test}

      HttpPort" createdFromAPI="true"">
      <jaxws:features>
      <core:logging/>
      </jaxws:features>
      </jaxws:client>

      </beans>

      Attachments

        Activity

          People

            apaibir Ajay Paibir
            apaibir Ajay Paibir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: