org.apache.ode.utils
Class AxisUtils

java.lang.Object
  extended by org.apache.ode.utils.AxisUtils

public class AxisUtils
extends java.lang.Object


Constructor Summary
AxisUtils()
           
 
Method Summary
static void configureService(org.apache.axis2.description.AxisService axisService, java.net.URL service_file)
           
static void configureService(org.apache.axis2.context.ConfigurationContext configCtx, org.apache.axis2.description.AxisService axisService, java.net.URL service_file)
          Configure a service instance woth the specified service.xml document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisUtils

public AxisUtils()
Method Detail

configureService

public static void configureService(org.apache.axis2.description.AxisService axisService,
                                    java.net.URL service_file)
                             throws java.io.IOException,
                                    javax.xml.stream.XMLStreamException,
                                    org.apache.axis2.AxisFault
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
org.apache.axis2.AxisFault

configureService

public static void configureService(org.apache.axis2.context.ConfigurationContext configCtx,
                                    org.apache.axis2.description.AxisService axisService,
                                    java.net.URL service_file)
                             throws java.io.IOException,
                                    javax.xml.stream.XMLStreamException,
                                    org.apache.axis2.AxisFault
Configure a service instance woth the specified service.xml document. If modules are mentioned in the document, this method will make sure they are properly engaged and engage them if necessary. The modules have to be available in the module repository otherwise an AxisFault will be thrown.

Parameters:
axisService - the service to configure
service_file - the service.xm document to configure the service with
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
org.apache.axis2.AxisFault - if a module listed in the service.xml is not available in the module repository