<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:spring="http://www.springframework.org/schema/beans"
  xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.0"
  xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
       http://www.mulesource.org/schema/mule/cxf/2.0 http://www.mulesource.org/schema/mule/cxf/2.0/mule-cxf.xsd">
  
  <endpoint name="quartz.in" address="quartz:/eventTimer">
    <properties>
     <spring:entry key="repeatInterval" value="1000" />
     <spring:entry key="repeatCount" value="0" />
     <spring:entry key="startDelay" value="1000" />
     <spring:entry key="payloadClassName" value="" />
    </properties>
  </endpoint>
  
  <cxf:endpoint 
      name="clientEndpoint" 
      address="http://localhost:63081/services/greeter"
      clientClass="org.apache.hello_world_soap_http.SOAPService" 
      wsdlPort="SoapPort" 
      wsdlLocation="classpath:/wsdl/hello_world.wsdl">
      <cxf:inInterceptors>
          <spring:bean id="foo1" class="org.apache.cxf.interceptor.LoggingInInterceptor"/>    
      </cxf:inInterceptors>
      <cxf:outInterceptors>
          <spring:bean id="foo2" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>    
      </cxf:outInterceptors>
  </cxf:endpoint>
    
  <model name="TestCxfModel">
  
    <service name="greeterService">
      <inbound>
          <cxf:inbound-endpoint address="http://localhost:63081/services/greeter" />
      </inbound>
      <component>
        <singleton-object class="org.apache.hello_world_soap_http.GreeterImpl"/>
      </component>
    </service>
    
    <service name="cxfClient">
      <inbound>
        <inbound-endpoint ref="quartz.in"/>
      </inbound>
      <component>
          <singleton-object class="org.mule.transport.cxf.jaxws.ClientMessageGenerator"/>
      </component>
	  <outbound>
	    <outbound-pass-through-router>
	       <cxf:outbound-endpoint 
	         address="http://localhost:63081/services/greeter"
	         clientClass="org.apache.hello_world_soap_http.SOAPService" 
	         wsdlPort="SoapPort" 
	         wsdlLocation="classpath:/wsdl/hello_world.wsdl" 
	         operation="greetMe"/>
	    </outbound-pass-through-router>
	  </outbound>
    </service>
  </model>
</mule>