cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajay Paibir (JIRA)" <>
Subject [jira] Created: (CXF-980) Configuring a JAX-WS Dispatch Client via Spring ApplicationContext
Date Fri, 07 Sep 2007 14:23:31 GMT
Configuring a JAX-WS Dispatch Client via Spring ApplicationContext

                 Key: CXF-980
             Project: CXF
          Issue Type: New Feature
          Components: Configuration
    Affects Versions: 2.0.1
            Reporter: Ajay Paibir
            Assignee: Ajay Paibir

There is a requirement to create Dispatch Clients that deal with JAXB or Source data models
but leave the EndpointName and Url to be set in the config files.So that the application code
need not be compiled if data has to be switched to some other endpoint.
Currently as per the link it is
possible to create a prxoy by specifying the ProxyFactory in the config 
Along the same lines if it is possbile to create a Dispatch Instance and return it for the
user to Dispatch his objects would be great.

So effectively the spring config would look something like ...
<beans xmlns=""
  <bean id="proxyFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
    <property name="serviceName" value="{http://foo}HWService"/>
    <property name="portName" value="{http://foo}HWPort"/>
    <property name="address" value="http://localhost:9002/HelloWorld"/>
    <property name="bindingId" value="soap_binding_id"/>
    <property name="serviceMode" value="PAYLOAD or MESSAGE"/>
    <property name="dataFormat" value="Source.class or JAXB Classes"/>
  <bean id="Client1" class="" 
    factory-bean="proxyFactory" factory-method="createDispatch"/>

The Client Mainline would then be 
BusApplicationContext bac = Bus.getExtension(BusApplicationContext .class);
Dispatch disp = (Dispatch)bac.getBean("Client1");

Is this possible?

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

View raw message