This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here are some examples on using configuration files to add features.
You can find more information about the CXF provides features at CXF Features FeaturesList.

Code Block
xml
xml
<beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:cxf="http://cxf.apache.org/core"
      xmlns:jaxws="http://cxf.apache.org/jaxws"
      xsi:schemaLocation="
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
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
    <!-- adding the feature to the bus-->
    <cxf:bus>
        <cxf:features>
            <cxf:logging/>
        </cxf:features>
    </cxf:bus> 

    <bean id="myfeature" class="com.example.Myfeature"/>
    
    <!-- adding the feature to the client -->    
    <jaxws:client id="client" 
    serviceClass="org.apache.hello_world_soap_http.Greeter"    
    wsdlLocation="wsdl/hello_world.wsdl">
    <jaxws:features>
         <bean ref="myfeature" />
    <jaxws:features>
    </jaxws:client>
    
    <!-- adding the feature to the server -->
    <jaxws:server id="server" serviceBean="org.apache.hello_world_soap_http.GreetImpl" address="http://localhost:8080/simpleWithAddress">
      <jaxws:features>
        <bean class="com.example.Myfeature"/>
      </jaxws:features>
    </jaxws:server>

</beans>