Declare Web Service as a Spring Bean
Bean Configuration File
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd"
default-lazy-init="false">
<bean id="psicquicClientFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass" value="org.hupo.psi.mi.psicquic.PsicquicService" />
<property name="address"
value="http://www.ebi.ac.uk/intact/psicquic/webservices/psicquic" />
</bean>
<bean id="psicquicWebService" class="org.hupo.psi.mi.psicquic.PsicquicService"
factory-bean="psicquicClientFactory" factory-method="create" />
<bean id="psicquicClient" class="org.cytoscape.webservice.internal.PSICQUICClientImpl">
<property name="psicquicService" ref="psicquicWebService" />
</bean>
</beans> Outdated_Cytoscape_3.0/WebServiceSpringOsgi (last edited 2011-02-24 15:36:14 by PietMolenaar)