You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by svbumpas21 <sv...@aol.com> on 2009/06/18 00:25:47 UTC
Forwarding cxf request
I'm trying to read an existing cxf service from an external server using
jaxws:client and then create an identical service locally with the
information retrieved. Below is the code for the external machine, creating
the bean and endpoint
<bean id="InterfaceMapping"
class="com.summit.springsupport.cxf.AegisContextBeanImplementationMap">
<property name="mappedClassNames">
<props>
<prop
key="com.summit.devicelinc.common.DeviceInterface">com.summit.devicelinc.common.DeviceProxy</prop>
<prop
key="com.summit.devicelinc.common.analogio.AnalogIODevice">com.summit.devicelinc.common.analogio.AnalogIODeviceProxy</prop>
<prop
key="com.summit.devicelinc.common.digitalio.DigitalIODevice">com.summit.devicelinc.common.digitalio.DigitalIODeviceProxy</prop>
</props>
</property>
</bean>
<bean id="AegisDataBinding"
class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype">
<property name="aegisContext">
<bean class="org.apache.cxf.aegis.AegisContext">
<property name="writeXsiTypes" value="true" />
<property name="beanImplementationMap">
<ref bean="InterfaceMapping" />
</property>
</bean>
</property>
</bean>
<bean id="ServiceFactoryBean"
class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"
scope="prototype">
<property name="dataBinding">
<ref bean="AegisDataBinding" />
</property>
<property name="serviceConfigurations">
<list>
<bean
class="org.apache.cxf.jaxws.support.JaxWsServiceConfiguration"/>
<bean
class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration"/>
<bean
class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/>
</list>
</property>
</bean>
<bean id="ScriptingDAO"
class="com.summit.datalinc.scripting.HibernateScriptingDAO">
<property name="sessionFactory" ref="scriptingSessionFactory" />
<property name="transactionTemplate">
<bean
class="org.springframework.transaction.support.TransactionTemplate">
<property name="transactionManager"
ref="scriptingTransactionManager" />
</bean>
</property>
</bean>
<jaxws:endpoint id="ScriptingDAOService" implementor="#ScriptingDAO"
address="/ScriptingDAO">
<jaxws:serviceFactory>
<ref bean="ServiceFactoryBean" />
</jaxws:serviceFactory>
</jaxws:endpoint>
And the code on the local machine, reading the service from the other
machine and creating a new endpoint...
<jaxws:client id="ScriptingDAO"
serviceClass="com.summit.datalinc.scripting.ScriptingDAO"
address="http://10.0.1.60:8080/DataLincServer/cxf-services/ScriptingDAO"/>
<jaxws:endpoint id="ScriptingDAOService" implementor="#ScriptingDAO"
address="/ScriptingDAO">
</jaxws:endpoint>
At the moment, the local machine requests the information from the external
service, and the data sent back is to be expected, but when a soap client
accesses the service on the local machine, the requests are done
incorrectly.
--
View this message in context: http://www.nabble.com/Forwarding-cxf-request-tp24083246p24083246.html
Sent from the cxf-user mailing list archive at Nabble.com.