Class JAXWSServiceBuilderExtension

  • All Implemented Interfaces:
    ServiceBuilderExtension

    public class JAXWSServiceBuilderExtension
    extends 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 Detail

      • JAXWSServiceBuilderExtension

        public JAXWSServiceBuilderExtension()
    • Method Detail

      • 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