Class JAXWSServiceBuilderExtension

java.lang.Object
org.apache.axis2.deployment.AbstractServiceBuilderExtension
org.apache.axis2.jaxws.framework.JAXWSServiceBuilderExtension
All Implemented Interfaces:
org.apache.axis2.deployment.ServiceBuilderExtension

public class JAXWSServiceBuilderExtension extends org.apache.axis2.deployment.AbstractServiceBuilderExtension

The Class JAXWSServiceBuilderExtension is an implementation of org.apache.axis2.deployment.ServiceBuilderExtension interface and facilitate to deploy JAX-WS artifacts through other Deployers.

As an example it is possible to use JAXWSServiceBuilderExtension class to add JAX-WS support for service.xml meta file based service deployment. First, JAXWSServiceBuilderExtension create initial AxisService and ServiceDeployer add further configuration based of provided service.xml meta data file. Annotated call may load from embedded archive (AAR), a exploded directory or from Classpath.

It is expected to define only JAXWSMessageReceiver as MessageReceivers in the service.xml file

Example :

 
  <messageReceivers>
         <messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" class="org.apache.axis2.jaxws.server.JAXWSMessageReceiver"/>
         <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="org.apache.axis2.jaxws.server.JAXWSMessageReceiver"/>
     </messageReceivers>
 
 
 
Since:
1.7.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<String,org.apache.axis2.description.AxisService>
    buildAxisServices(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData)
     
    protected boolean
    This method check whether all the defined are type of JAXWSMessageReceiver.

    Methods inherited from class org.apache.axis2.deployment.AbstractServiceBuilderExtension

    getAxisConfiguration, getConfigurationContext, getDirectory, init, setDirectory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JAXWSServiceBuilderExtension

      public JAXWSServiceBuilderExtension()
  • Method Details

    • buildAxisServices

      public Map<String,org.apache.axis2.description.AxisService> buildAxisServices(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData) throws org.apache.axis2.deployment.DeploymentException
      Throws:
      org.apache.axis2.deployment.DeploymentException
    • checkPreconditions

      protected boolean checkPreconditions(Object metaData)
      This method check whether all the defined are type of JAXWSMessageReceiver. Return true only if all the elements satisfy above condition.
      Parameters:
      metaData - the meta data
      Returns:
      true, if successful