Hello,
I have this problem of having a method exposed as a web service that returns
not only its declared type but some subtypes. I found solution on the Xfire
site for Aegis (which we use) - http://xfire.codehaus.org/Aegis+Inheritance and
JaxB - http://xfire.codehaus.org/JAXB+2.0 (JAXB 2 and Inheritance)
My problem is that I cannot find a way to incorporate the given solutions to
current configuration. I use spring 1 + xfire + JSR 181 annotations to deploy
web services in tomcat container. I will post my spring config below, please,
help me put those properties mentioned in the solution inside Aegis service
factory.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfi
gurer">
<property name="location">
<value>classpath:jdbc.properties</value>
</property>
</bean>
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>${hibernate.connection.driver_class}</value>
</property>
<property name="url">
<value>${hibernate.connection.url}</value>
</property>
<property name="username">
<value>${hibernate.connection.username}</value>
</property>
<property name="password">
<value>${hibernate.connection.password}</value>
</property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
<property name="configLocation">
<value>WEB-INF/hibernate.cfg.xml</value>
</property>
<property name="configurationClass">
<value>org.hibernate.cfg.AnnotationConfiguration</value>
</property>
<property name="hibernateProperties">
<props>
<prop
key="hibernate.dialect">${hibernate.dialect}</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.c3p0.min_size">
${hibernate.c3p0.min_size}</prop>
<prop key="hibernate.c3p0.max_size">
${hibernate.c3p0.max_size}</prop>
<prop key="hibernate.c3p0.timeout">
${hibernate.c3p0.timeout}</prop>
<prop key="hibernate.c3p0.max_statement">
${hibernate.c3p0.max_statements}</prop>
<prop key="hibernate.hbm2ddl.auto">
${hibernate.hbm2ddl.auto}</prop>
</props>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<bean id="webAnnotations"
class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations"/>
<bean id="handlerMapping"
class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping">
<property name="typeMappingRegistry"
ref="xfire.typeMappingRegistry"/>
<property name="xfire" ref="xfire"/>
<property name="webAnnotations" ref="webAnnotations"/>
</bean>
<bean
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="urlMap">
<map>
<entry key="/">
<ref bean="handlerMapping"/>
</entry>
</map>
</property>
</bean>
<bean id="PSIDao"
class="com.icw.pfh.psi.dao.impl.PSIDaoImpl">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="PSIService"
class="com.icw.pfh.psi.service.impl.PSIImpl">
<property name="dao">
<ref bean="PSIDao"/>
</property>
</bean>
</beans>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email