Ah, I think I see.

Don't set the "implementationClass" property on ServiceBean, use the "serviceClass" property instead:

<bean id="userService" parent="baseService">
<property name="serviceClass" value="com.acme.services.UserService"></property> <-- tThis is the interface
       <property name="serviceBean">
           <ref bean="userServiceImpl"/>
       </property>
<property name="namespace" value=" http://com.acme.services/UserService";></property>
   </bean>

This should do the job.

M.

Vinicius Carvalho schrieb:
Hello Folks!
Well, I'm sorry can't use JSR 181 (JDK 1.4 here :( damn Oracle AS)
Well, I'm exposing my services via Service Bean, and I do not have the get/set methods on the interface check it out:

<beans>
<bean id="baseService" class="org.codehaus.xfire.spring.ServiceBean" abstract="true">
        <property name="style" value="document"></property>
        <property name="use" value="literal"></property>
        <property name="inHandlers">
            <list>
                <ref bean="addressingHandler"/>
            </list>
        </property>
    </bean>
<bean id="addressingHandler" class="org.codehaus.xfire.addressing.AddressingInHandler"/> <bean id="userService" parent="baseService"> <property name="implementationClass" value="com.acme.services.UserService"></property> <-- tThis is the interface
        <property name="serviceBean">
            <ref bean="userServiceImpl"/>
        </property>
<property name="namespace" value=" http://com.acme.services/UserService";></property>
    </bean>
<bean name="userDAO" class="com.acme.eai.dao.HibernateUserDAO"></bean>
    <bean name="userBO" class=" com.acme.bo.AcmeUserBO"></bean>
<bean name="userServiceImpl" class="com.acme.services.UserServiceImpl">
        <property name="bo">
            <ref bean="userBO"/>
        </property>
    </bean>
public interface UserService {

    public abstract User getUser(Integer id);

}


Still, it is exposing the BO type.

I also have UserService.aegis.xml
<?xml version="1.0" encoding="UTF-8"?>
<mappings>
    <mapping>
        <property name="bo" ignore="true"/>
    </mapping>
</mappings>
and AcmeUserBO.aegis.xml (This is just a test hence the Acme name ;) )
<?xml version="1.0" encoding="UTF-8"?>
<mappings>
    <mapping>
        <property name="dao" ignore="true"/>
    </mapping>
</mappings>

Best Regards






--
cyber:con gmbh
Mika Göckel

Rathausallee 10
53757 Sankt Augustin

tel (+49)2241 / 9350 0
fax (+49)2241 / 9350 99
mob (+49) 172 / 279 2771
skype mika.goeckel
email [EMAIL PROTECTED]

Reply via email to