org.objectweb.jonas.ws
Interface WebServicesService

All Superinterfaces:
Service
All Known Implementing Classes:
AbsWebServicesServiceImpl

public interface WebServicesService
extends Service

WebServices Service interface.

Author:
Guillaume Sauthier

Method Summary
 javax.xml.rpc.Service configureJaxRpcService(javax.xml.rpc.Service service, javax.naming.Context ctx)
          Configure the given JaxRpc Service file with the Context Configuration parameter.
 void deployWebServices(javax.naming.Context ctx)
          explore the context classloader to find Web service deployment descriptor (for endpoints) and service-ref element within standard deployment descriptor (for clients).
 java.lang.String getDefaultServletName()
          Return the Deafult Servlet Name tio use for SSB WebServices.
 void locateWSDL()
          DOCUMENT ME!
 void publishWSDL(WSDLFile wsdl)
          DOCUMENT ME!
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Method Detail

deployWebServices

public void deployWebServices(javax.naming.Context ctx)
                       throws WSServiceException
explore the context classloader to find Web service deployment descriptor (for endpoints) and service-ref element within standard deployment descriptor (for clients). It registers each endpoints in WS engine publishing relative WSDLs, and it instanciates and binds in the registry each clients classes.

Parameters:
ctx - the context containing the configuration to deploy the wars.
This context contains the following parameters :
- jarUrls the list of the urls of the jars to deploy.
- warUrls the list of the urls of the wars to deploy.
- parentClassLoader the parent classLoader of the wars.
- earClassLoader the ear classLoader of the j2ee app.
- altDDs the optional URI of deployment descriptor.
Throws:
WSServiceException - if an error occurs during the deployment.

locateWSDL

public void locateWSDL()
DOCUMENT ME!


publishWSDL

public void publishWSDL(WSDLFile wsdl)
DOCUMENT ME!

Parameters:
wsdl - DOCUMENT ME!

configureJaxRpcService

public javax.xml.rpc.Service configureJaxRpcService(javax.xml.rpc.Service service,
                                                    javax.naming.Context ctx)
                                             throws WSServiceException
Configure the given JaxRpc Service file with the Context Configuration parameter. Used when a port-component-link has been specified in service-ref. Its a engine specific process (has to be implemented in specific WebServicesService).

Parameters:
service - The Service to configure
ctx - The Context where find informations for Context Configuration
Returns:
The configured Service
Throws:
WSServiceException - When configuration fails.

getDefaultServletName

public java.lang.String getDefaultServletName()
Return the Deafult Servlet Name tio use for SSB WebServices.

Returns:
the Deafult Servlet Name tio use for SSB WebServices.