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)

Funding for Cytoscape is provided by a federal grant from the U.S. National Institute of General Medical Sciences (NIGMS) of the Na tional Institutes of Health (NIH) under award number GM070743-01. Corporate funding is provided through a contract from Unilever PLC.

MoinMoin Appliance - Powered by TurnKey Linux