Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.3.2
-
Unknown
Description
I am working on migration of webservice project from Xfire to CXF. And I need some HELP DOING SO. I am quite new to webservices. Your help is much appreciated.
The requirement is to have backwards compatibility.
This is how the xfire was implemented.
<bean
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="urlMap">
<map>
<entry key="/*">
<ref bean="lastFunction" />
</entry>
</map>
</property>
</bean>
<bean id="wsaServiceFactory"
class="com.YYY.webservice.xfire.servicefactory.WsaObjectServiceFactory"
singleton="true">
<constructor-arg index="0">
<ref bean="xfire.transportManager" />
</constructor-arg>
<constructor-arg index="1">
<ref bean="xfire.aegisBindingProvider" />
</constructor-arg>
<constructor-arg index="2">
<value>urn:getDetails</value>
</constructor-arg>
</bean>
<bean id="lastFunction"
class="org.codehaus.xfire.spring.remoting.XFireExporter">
<property name="serviceFactory">
<ref bean="wsaServiceFactory" />
</property>
<property name="xfire">
<ref bean="xfire" />
</property>
<property name="serviceBean">
<ref bean="lastService" />
</property>
<property name="serviceClass">
<value>
com.xyz.last.webservice.LastService
</value>
</property>
</bean>
The soap request is something like this
<soapenv:Envelope>
<soapenv:Body>
<web:getLast>
<web:in0>
<ser:key>xyz</ser:key>
<ser:searchAcross>true</ser:searchAcross>
</web:in0>
</web:getLast>
</soapenv:Body>
</soapenv:Envelope>
Can you please guide me how I can upgrade this to CXF with backwards compatibilty, so that I could use the same request to hit the new service.
Thank you for you help.
Thanks
TJ