Hi,
I am thinking of using JAXB2 binding instead of aegis binding for my service.
I am using annotation factory and spring configuration as shown in snippet
below. I don't see the JAXB2 binding provider in the xfire.xml file. I want to
know how as to how can I configure JAXB2 binding with annotation factory.
Could someone help me with this?
----------------------------------------------------------------------------------------------------------
<bean name="/Order"
class="org.codehaus.xfire.spring.remoting.XFireExporter">
<property name="serviceBean" ref="orderService" />
<property name="serviceClass">
<value>com.test.OrderQueryService</value>
</property>
<property name="serviceFactory">
<ref bean="xfire.annotationServiceFactory" />
</property>
</bean>
<bean id="xfire.annotationServiceFactory"
class="org.codehaus.xfire.annotations.AnnotationServiceFactory">
<constructor-arg index="0" ref="webAnnotations" />
<constructor-arg index="1" ref="xfire.transportManager" />
<constructor-arg index="2" ref="xfire.aegisBindingProvider" />
</bean>
<bean id="webAnnotations"
class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations" />
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
-----------------------------------------------------------------------------------------------------------
Thanks,
Durga
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.