|
← Revision 1 as of 2009-02-23 23:59:54
Size: 1136
Comment:
|
← Revision 2 as of 2011-02-24 15:36:14
Size: 1197
Comment: Start afresh with Cytoscape 3 documentation
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| ## page was renamed from Cytoscape_3.0/WebServiceSpringOsgi |
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>