org.kuali.student.common.spring
Class KualiWebServiceExporter

java.lang.Object
  extended by org.kuali.rice.ksb.api.bus.support.ServiceBusExporter
      extended by org.kuali.student.common.spring.KualiWebServiceExporter
All Implemented Interfaces:
InitializingBean

public class KualiWebServiceExporter
extends ServiceBusExporter
implements InitializingBean

Kuali Web Service interfaces have an @WebService annotation present. This class extends the Rice ServiceBusExporter class to let the @WebService details provide the SoapServiceDefinition automatically. The original class behavior still works and the annotation based functionality is only activated if no definition is provided in the xml.

<bean id="ks.AtpServiceExport" class="org.kuali.student.commone.spring.KualiWebServiceExporter"> 
       <property name="webService" ref="AtpService"/>
       <property name="busSecurity" value="true" />
</bean>
 
versus the default:
 <bean id="ks.AtpServiceExport" class="org.kuali.rice.ksb.api.bus.support.ServiceBusExporter">
        <property name="serviceDefinition">
            <bean class="org.kuali.rice.ksb.api.bus.support.SoapServiceDefinition">
                <property name="jaxWsService" value="true" />
                <property name="service" ref="atpEnrService" />
                <property name="serviceInterface" value="org.kuali.student.r2.core.atp.service.AtpService" />
                <property name="localServiceName" value="AtpService" />
                <property name="serviceNameSpaceURI" value="http://student.kuali.org/wsdl/atp" />
                <property name="busSecurity" value="true" />
            </bean>
        </property>
    </bean>
    
 

Author:
Kuali Student Team

Constructor Summary
KualiWebServiceExporter()
           
 
Method Summary
 void afterPropertiesSet()
           
 void setBusSecurity(boolean busSecurity)
          Set to false to disable security on the exported web service.
 void setWebService(Object webService)
           
 
Methods inherited from class org.kuali.rice.ksb.api.bus.support.ServiceBusExporter
autoLocateServiceBus, getServiceBus, getServiceDefinition, isForceSync, setForceRefresh, setServiceBus, setServiceDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KualiWebServiceExporter

public KualiWebServiceExporter()
Method Detail

setWebService

public void setWebService(Object webService)
Parameters:
webService - the webService to set

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class ServiceBusExporter

setBusSecurity

public void setBusSecurity(boolean busSecurity)
Set to false to disable security on the exported web service. Defaults to true.

Parameters:
busSecurity - the busSecurity to set


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.