You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Tarun Jain (JIRA)" <ji...@apache.org> on 2013/06/04 06:01:19 UTC

[jira] [Created] (CXF-5054) Xfire to CXF migration

Tarun Jain created CXF-5054:
-------------------------------

             Summary: Xfire to CXF migration
                 Key: CXF-5054
                 URL: https://issues.apache.org/jira/browse/CXF-5054
             Project: CXF
          Issue Type: New Feature
          Components: Aegis Databinding, JAX-WS Runtime, Soap Binding
    Affects Versions: 2.3.2
            Reporter: Tarun Jain


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira