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

                 Key: CXF-937
                 URL: https://issues.apache.org/jira/browse/CXF-937
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.0.1
            Reporter: Ajay Paibir


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>



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to