This is my spring configuration at publisher:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                xmlns:p="http://www.springframework.org/schema/p";
xmlns:aop="http://www.springframework.org/schema/aop";
                xmlns:context="http://www.springframework.org/schema/context";
xmlns:tx="http://www.springframework.org/schema/tx";
         xmlns:jaxws="http://cxf.apache.org/jaxws";
             xmlns:cxf="http://cxf.apache.org/core";
                xmlns:jms="http://cxf.apache.org/transports/jms";
                xsi:schemaLocation="
                        http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
                        http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
                        http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
                        http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
                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://cxf.apache.org/transports/jms
http://cxf.apache.org/schemas/configuration/jms.xsd"; >

<context:component-scan base-package="foo"/>
<context:annotation-config />

<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-local.xml" />


<bean class="org.apache.cxf.transport.local.LocalTransportFactory"
lazy-init="false">
      <property name="transportIds">
          <list>
              <value>http://cxf.apache.org/transports/local</value>
              <value>http://schemas.xmlsoap.org/soap/http</value>
              <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>
          </list>
      </property>
  </bean>
  

<jaxws:endpoint  id="CustomerServiceWS" address="local://CustomerService"
implementor="#CustomerService"/>
          
<jaxws:endpoint id="GreeterJmsWS"  address="local://GreeterJms/"
implementor="#GreeterJMS" />  

</beans>

Configuration at WS Consumer:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                xmlns:p="http://www.springframework.org/schema/p";
xmlns:aop="http://www.springframework.org/schema/aop";
                xmlns:context="http://www.springframework.org/schema/context";
xmlns:tx="http://www.springframework.org/schema/tx";
         xmlns:jaxws="http://cxf.apache.org/jaxws";
             xmlns:cxf="http://cxf.apache.org/core";
                xmlns:jms="http://cxf.apache.org/transports/jms";
                xsi:schemaLocation="
                        http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
                        http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
                        http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
                        http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
                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://cxf.apache.org/transports/jms
http://cxf.apache.org/schemas/configuration/jms.xsd"; >

<context:component-scan base-package="foo"/>
<context:annotation-config />

<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-local.xml" />


<bean class="org.apache.cxf.transport.local.LocalTransportFactory"
lazy-init="false">
      <property name="transportIds">
          <list>
              <value>http://cxf.apache.org/transports/local</value>
              <value>http://schemas.xmlsoap.org/soap/http</value>
              <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>
          </list>
      </property>
  </bean>
  
<jaxws:client id="greeterJMSImplService" address="local://GreeterJms" 
serviceClass="foo.service.GreeterJMS" />        

 <jaxws:client id="customerService" address="local://CustomerService" 
serviceClass="foo.service.CustomerService"/>

</beans>




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Re-Local-Transport-MessageObserver-error-tp4726658p4726903.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Reply via email to