You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Ajay Paibir (JIRA)" <ji...@apache.org> on 2007/08/23 20:16:30 UTC

[jira] Created: (CXF-937) Features does not work with a JAX-WS Dispatch Client when defined via spring config.

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.


[jira] Assigned: (CXF-937) Features does not work with a JAX-WS Dispatch Client when defined via spring config.

Posted by "Ajay Paibir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ajay Paibir reassigned CXF-937:
-------------------------------

    Assignee: Ajay Paibir

> 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
>            Assignee: 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.


[jira] Resolved: (CXF-937) Features does not work with a JAX-WS Dispatch Client when defined via spring config.

Posted by "Ajay Paibir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ajay Paibir resolved CXF-937.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.2

This bug fix enables CXF Features to be applied via config when JAX-WS Dispatch API is being used. 

> 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
>            Assignee: Ajay Paibir
>             Fix For: 2.0.2
>
>
> 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.