Package org.apache.axis2.jaxws.description

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


        this(service, null, null);
    }

    public WSDLQueryHandler(AxisService service, PortInfo portInfo, Collection<PortInfo> portInfos) {
        this.service = service;
        EndpointDescription ed = AxisServiceGenerator.getEndpointDescription(this.service);
        JAXWSCatalogManager catalogManager = ed.getServiceDescription().getCatalogManager();
        if (catalogManager != null) {
            this.catalog = catalogManager.getCatalog();
        }
        if (portInfo != null && portInfos != null) {
            this.portInfo = portInfo;
View Full Code Here


        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;
            }
        }
        if (targetEndpointDescription == null) {
            throw new RuntimeException("No endpoint found for SEI class " + endpointClass.getName());
        }
        configureWebServiceFeatures(targetEndpointDescription, portInfo);
        AxisService service = targetEndpointDescription.getAxisService();

        if (service.getNamespaceMap() == null) {
            NamespaceMap map = new NamespaceMap();
            map.put(Java2WSDLConstants.AXIS2_NAMESPACE_PREFIX, Java2WSDLConstants.AXIS2_XSD);
            map.put(Java2WSDLConstants.DEFAULT_SCHEMA_NAMESPACE_PREFIX, Java2WSDLConstants.URI_2001_SCHEMA_XSD);
View Full Code Here

            serviceProviderAnnot.setServiceName(serviceQName.getLocalPart());
            serviceProviderAnnot.setTargetNamespace(serviceQName.getNamespaceURI());
            processServiceBinding(dbc, protocolBinding);
        }

        EndpointDescription endpointDescription = getEndpointDescription(dbcMap, endpointClassName);
        //The portInfo is a mixed content of the annotations and webservices.xml file, currently, we have no way to pass the final portInfo
        //to Axis2, so reconfigure those web service features in the endpoint description here.
        configureWebServiceFeatures(endpointDescription, portInfo);
        AxisService service = endpointDescription.getAxisService();

        service.setName(serviceQName.getLocalPart());
        service.setEndpointName(portQName.getLocalPart());

        for(Iterator<AxisOperation> opIterator = service.getOperations() ; opIterator.hasNext() ;){
View Full Code Here

        Parameter param = service.getParameter(EndpointDescription.AXIS_SERVICE_PARAMETER);
        return (param == null) ? null : (EndpointDescription) param.getValue();
    }

    public static boolean isSOAP11(AxisService service) {
        EndpointDescription desc = AxisServiceGenerator.getEndpointDescription(service);
        return javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING.equals(desc.getBindingType()) ||
               javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(desc.getBindingType());
    }
View Full Code Here

        return javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING.equals(desc.getBindingType()) ||
               javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(desc.getBindingType());
    }

    public static boolean isHTTP(AxisService service) {
        EndpointDescription desc = AxisServiceGenerator.getEndpointDescription(service);
        return javax.xml.ws.http.HTTPBinding.HTTP_BINDING.equals(desc.getBindingType());
    }
View Full Code Here

        return returnMethod;
    }
   
    private OperationDescription getOperationDescription(MessageContext mc) {
        EndpointDescription ed = mc.getEndpointDescription();
        EndpointInterfaceDescription eid = ed.getEndpointInterfaceDescription();
       
        OperationDescription[] ops = eid.getDispatchableOperation(mc.getOperationName());
        if (ops == null || ops.length == 0) {
            throw ExceptionFactory.makeWebServiceException(
                    "No operation found.  WSDL Operation name: " + mc.getOperationName());
View Full Code Here

    private EndpointDescription getEndpointDescription(MessageContext mc) {
        AxisService axisSvc = mc.getAxisMessageContext().getAxisService();

        Parameter param = axisSvc.getParameter(EndpointDescription.AXIS_SERVICE_PARAMETER);

        EndpointDescription ed = (EndpointDescription) param.getValue();
        return ed;
    }
View Full Code Here

        Parameter param = service.getParameter(EndpointDescription.AXIS_SERVICE_PARAMETER);
        return (param == null) ? null : (EndpointDescription) param.getValue();
    }
   
    public static boolean isSOAP11(AxisService service) {
        EndpointDescription desc = AxisServiceGenerator.getEndpointDescription(service);
        return javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING.equals(desc.getBindingType()) ||
               javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(desc.getBindingType());
    }
View Full Code Here

        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;
            }
        }
        if (targetEndpointDescription == null) {
            throw new RuntimeException("No endpoint found for SEI class " + endpointClass.getName());
        }
        configureWebServiceFeatures(targetEndpointDescription, portInfo);
        AxisService service = targetEndpointDescription.getAxisService();

        if (service.getNamespaceMap() == null) {
            NamespaceMap map = new NamespaceMap();
            map.put(Java2WSDLConstants.AXIS2_NAMESPACE_PREFIX, Java2WSDLConstants.AXIS2_XSD);
            map.put(Java2WSDLConstants.DEFAULT_SCHEMA_NAMESPACE_PREFIX, Java2WSDLConstants.URI_2001_SCHEMA_XSD);
View Full Code Here

            serviceProviderAnnot.setServiceName(serviceQName.getLocalPart());
            serviceProviderAnnot.setTargetNamespace(serviceQName.getNamespaceURI());
            processServiceBinding(dbc, protocolBinding);
        }

        EndpointDescription endpointDescription = getEndpointDescription(dbcMap, endpointClassName);
        //The portInfo is a mixed content of the annotations and webservices.xml file, currently, we have no way to pass the final portInfo
        //to Axis2, so reconfigure those web service features in the endpoint description here.
        configureWebServiceFeatures(endpointDescription, portInfo);
        AxisService service = endpointDescription.getAxisService();

        service.setName(serviceQName.getLocalPart());
        service.setEndpointName(portQName.getLocalPart());

        for(Iterator<AxisOperation> opIterator = service.getOperations() ; opIterator.hasNext() ;){
View Full Code Here

TOP

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

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.