Package org.apache.axis2.jaxws.description

Examples of org.apache.axis2.jaxws.description.ServiceDescription


        if (handlerClass == null) {
            throw ExceptionFactory.
              makeWebServiceException(Messages.getMessage("createHandlerInstanceErr"));
        }
       
        ServiceDescription serviceDesc = mc.getEndpointDescription().getServiceDescription();       
        ResourceInjectionServiceRuntimeDescription injectionDesc = null;
        if (serviceDesc != null) {
            injectionDesc = ResourceInjectionServiceRuntimeDescriptionFactory.get(serviceDesc, handlerClass);           
        }
       
View Full Code Here


              makeWebServiceException(Messages.getMessage("destroyHandlerInstanceErr"));
        }
       
        this.instance = handler;
       
        ServiceDescription serviceDesc = mc.getEndpointDescription().getServiceDescription();       
        ResourceInjectionServiceRuntimeDescription injectionDesc = null;
        if (serviceDesc != null) {
            injectionDesc = ResourceInjectionServiceRuntimeDescriptionFactory.get(serviceDesc, handler.getClass());           
        }
View Full Code Here

                EndpointReference epr = bnd.getAxis2EndpointReference();
                org.apache.axis2.context.MessageContext axis2MessageContext =
                    messageContext.getAxisMessageContext();
                axis2MessageContext.setTo(epr);
               
                ServiceDescription sd = messageContext.getEndpointDescription().getServiceDescription();
                AxisConfiguration axisConfig = sd.getAxisConfigContext().getAxisConfiguration();
                if (!axisConfig.isEngaged(Constants.MODULE_ADDRESSING)) {
                    axisConfig.engageModule(Constants.MODULE_ADDRESSING);
                }
            }
            catch (Exception e) {
View Full Code Here

    /**
     * @param ed
     * @return
     */
    static MarshalServiceRuntimeDescription getMarshalDesc(EndpointDescription ed) {
        ServiceDescription sd = ed.getServiceDescription();
        return MarshalServiceRuntimeDescriptionFactory.get(sd);
    }
View Full Code Here

        service.addParameter(disabled);
        service.addParameter(required);
           
            String value = Utils.getParameterValue(disabled);
        if (JavaUtils.isFalseExplicitly(value)) {
          ServiceDescription sd = endpointDescription.getServiceDescription();
          AxisConfiguration axisConfig = sd.getAxisConfigContext().getAxisConfiguration();
          if (!axisConfig.isEngaged(Constants.MODULE_ADDRESSING))
            axisConfig.engageModule(Constants.MODULE_ADDRESSING);
        }
      }
      catch (Exception e) {
View Full Code Here

            service.addParameter(required);
            service.addParameter(responses);

            String value = Utils.getParameterValue(disabled);
            if (JavaUtils.isFalseExplicitly(value)) {
                ServiceDescription sd = endpointDescription.getServiceDescription();
                AxisConfiguration axisConfig = sd.getAxisConfigContext().getAxisConfiguration();
                if (!axisConfig.isEngaged(Constants.MODULE_ADDRESSING))
                    axisConfig.engageModule(Constants.MODULE_ADDRESSING);
            }
        } catch (Exception e) {
            logger.error("Fail to configure addressing info ", e);
View Full Code Here

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public AxisService getServiceFromClass(Class endpointClass, PortInfo portInfo) throws Exception {
        ServiceDescription serviceDescription = DescriptionFactory.createServiceDescription(endpointClass);
        EndpointDescription targetEndpointDescription = null;
        for (EndpointDescription endpointDescription : serviceDescription.getEndpointDescriptions()) {
            DescriptionBuilderComposite dbc = endpointDescription.getDescriptionBuilderComposite();
            if (endpointClass.getName().equals(dbc.getClassName())) {
                targetEndpointDescription = endpointDescription;
                break;
            }
View Full Code Here

    public void setMessageReceiver(MessageReceiver messageReceiver) {
        this.messageReceiver = messageReceiver;
    }
  
    public AxisService getServiceFromClass(Class endpointClass) throws Exception {
        ServiceDescription serviceDescription =
            DescriptionFactory.createServiceDescription(endpointClass);       
        EndpointDescription[] edArray = serviceDescription.getEndpointDescriptions();
        AxisService service = edArray[0].getAxisService();
               
        if (service.getNameSpacesMap() == null) {
            NamespaceMap map = new NamespaceMap();
            map.put(Java2WSDLConstants.AXIS2_NAMESPACE_PREFIX,
View Full Code Here

    private EndpointDescription getEndpointDescription(HashMap<String, DescriptionBuilderComposite> dbcMap) {
        List<ServiceDescription> serviceDescList = DescriptionFactory.createServiceDescriptionFromDBCMap(dbcMap);
        if (serviceDescList == null || serviceDescList.isEmpty()) {
            throw new RuntimeException("No service");
        }
        ServiceDescription serviceDescription = serviceDescList.get(0);
        EndpointDescription[] edArray = serviceDescription.getEndpointDescriptions()
        if (edArray == null || edArray.length == 0) {
            throw new RuntimeException("No endpoint");
        }
        return edArray[0];
    }
View Full Code Here

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public AxisService getServiceFromClass(Class endpointClass, PortInfo portInfo) throws Exception {
        ServiceDescription serviceDescription = DescriptionFactory.createServiceDescription(endpointClass);
        EndpointDescription targetEndpointDescription = null;
        for (EndpointDescription endpointDescription : serviceDescription.getEndpointDescriptions()) {
            DescriptionBuilderComposite dbc = endpointDescription.getDescriptionBuilderComposite();
            if (endpointClass.getName().equals(dbc.getClassName())) {
                targetEndpointDescription = endpointDescription;
                break;
            }
View Full Code Here

TOP

Related Classes of org.apache.axis2.jaxws.description.ServiceDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.