怎样使用spring配置一个xfire的web service(急)
我现在有一个对外发布的接口
<service>
<name>StationService</name>
<serviceClass>
com.bjjdsy.ky.zl.service.IStationServiceRemote
</serviceClass>
<implementationClass>
com.bjjdsy.ky.zl.service.StationServiceImpl
</implementationClass>
<style>wrapped</style>
<use>literal</use>
<scope>application</scope>
</service>
我想在spring配置文件中进行配置,让以后action中可以直接根据id拿到bean,然后访问其对外开发的方法,如下
StationWebServiceImpl manager=(StationWebServiceImpl)getWebApplicationContext().getBean("StationWebService");
System.out.println(manager.getService().getAllStation());
应该怎么写spring配置文件啊