Pessoal estou tentando adicionar um inHandle para fazer autenticação com WebServices porém não estou conseguindo, alguém saberia me ajudar…
Artigos com soluções que só funcionam sem WebAnnotations:
1- http://www.jroller.com/page/hexbinary?entry=xfire_as_a_webservice_provider
2 - http://www.jroller.com/page/sqyuan?entry=using_acegi_for_authentication_authorization
Este é o meu applicationContext-xFire.xml:
<beans>
<bean id="myServiceFacade" class="br.com.bluesoft.my.service.ws.impl.myServiceFacadeImpl" autowire="byName"/>
<bean id="webAnnotations" class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations" />
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="urlMap">
<map>
<entry key="/">
<ref bean="handlerMapping" />
</entry>
</map>
</property>
</bean>
<bean id="handlerMapping" class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping">
<property name="typeMappingRegistry">
<ref bean="xfire.typeMappingRegistry" />
</property>
<property name="xfire">
<ref bean="xfire" />
</property>
<property name="webAnnotations">
<ref bean="webAnnotations" />
</property>
</bean>
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
</beans>