axis.dynamic
Class SoapReceiver

java.lang.Object
  extended by axis.dynamic.SoapInterface
      extended by axis.dynamic.SoapReceiver

public class SoapReceiver
extends SoapInterface

Publishes a bean as a web service.


Field Summary
 
Fields inherited from class axis.dynamic.SoapInterface
_properties
 
Constructor Summary
SoapReceiver()
           
 
Method Summary
 void afterPropertiesSet()
          calls deploy() should only be called once for each configured SoapReceiver.
 org.apache.axis.handlers.soap.SOAPService createService()
           
 void deploy()
          should only be called once for each configured SoapReceiver.
 void destroy()
          calls undeploy()
 void setAllowedMethods(String[] methods)
          Java methods to be published as web service operations.
 void setBeanName(String name)
          used as default service name. may be overridden by setting the serviceName property.
 void setServerConfiguration(SoapServerConfiguration configuration)
           
 void setServiceName(String name)
          service name. if not set, bean name is used. if that is also not set, deploy() will throw an IllegalArgumentException.
 void setStyle(org.apache.axis.constants.Style style)
          if not set, defaults to Style.RPC.
 void setTarget(Object target)
           
 void setUse(org.apache.axis.constants.Use use)
          if not set, defaults to Use.ENCODED.
 void undeploy()
           
 
Methods inherited from class axis.dynamic.SoapInterface
addRequestHandler, addResponseHandler, getRequestChain, getResponseChain, setProperty, setRequestHandlers, setResponseHandlers, setSendMultiRefs, setSendXsiTypes, setUsePrettyXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapReceiver

public SoapReceiver()
Method Detail

setTarget

public void setTarget(Object target)
Parameters:
target - bean that actually implements the web service.

setBeanName

public void setBeanName(String name)
used as default service name. may be overridden by setting the serviceName property.

Parameters:
name -
See Also:
BeanNameAware#setBeanName(String)

setServiceName

public void setServiceName(String name)
service name. if not set, bean name is used. if that is also not set, deploy() will throw an IllegalArgumentException.

Parameters:
name -
See Also:
BeanNameAware#setBeanName(String)

setAllowedMethods

public void setAllowedMethods(String[] methods)
Java methods to be published as web service operations. If not set, all methods will be used. I'm not sure if that includes Object.toString() etc. See Axis documentation.

Parameters:
methods - Java methods to be published as web service operations.

setStyle

public void setStyle(org.apache.axis.constants.Style style)
if not set, defaults to Style.RPC.

Specified by:
setStyle in class SoapInterface
Parameters:
style -
See Also:
SoapInterface.setStyle(Style), JavaServiceDesc.setStyle(Style)

setUse

public void setUse(org.apache.axis.constants.Use use)
if not set, defaults to Use.ENCODED.

Specified by:
setUse in class SoapInterface
Parameters:
use -
See Also:
SoapInterface.setUse(Use), JavaServiceDesc.setUse(Use)

setServerConfiguration

public void setServerConfiguration(SoapServerConfiguration configuration)
Parameters:
configuration -

afterPropertiesSet

public void afterPropertiesSet()
                        throws org.apache.axis.AxisFault
calls deploy() should only be called once for each configured SoapReceiver.

Throws:
org.apache.axis.AxisFault - if service cannot be created
See Also:
InitializingBean#afterPropertiesSet()

deploy

public void deploy()
            throws org.apache.axis.AxisFault
should only be called once for each configured SoapReceiver.

Throws:
org.apache.axis.AxisFault - if service cannot be created

destroy

public void destroy()
calls undeploy()

See Also:
DisposableBean#destroy()

undeploy

public void undeploy()

createService

public org.apache.axis.handlers.soap.SOAPService createService()
                                                        throws org.apache.axis.AxisFault
Returns:
a new soap service.
Throws:
org.apache.axis.AxisFault - if service description cannot be initialized
See Also:
WSDDService.makeNewInstance(org.apache.axis.EngineConfiguration)


Copyright © 2004-2007 University of Troms?. All Rights Reserved.