Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisEndpoint


        // at axis2
        Map endPointMap = axisService.getEndpoints();
        for (Object o : endPointMap.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            AxisEndpoint point = (AxisEndpoint) entry.getValue();
            if (point.getBinding().getName().getLocalPart().equals(bindingName)) {
                axisBinding = point.getBinding();
                break;
            }
        }

        if (axisBinding == null) {
View Full Code Here


        // at axis2
        Map endPointMap = axisService.getEndpoints();
        for (Object o : endPointMap.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            AxisEndpoint point = (AxisEndpoint) entry.getValue();
            if (point.getBinding().getName().getLocalPart().equals(bindingName)) {
                axisBinding = point.getBinding();
                break;
            }
        }

        if (axisBinding == null) {
View Full Code Here

        // at axis2
        Map endPointMap = axisService.getEndpoints();
        for (Object o : endPointMap.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            AxisEndpoint point = (AxisEndpoint) entry.getValue();
            if (point.getBinding().getName().getLocalPart().equals(bindingName)) {
                axisBinding = point.getBinding();
                break;
            }
        }

        if (axisBinding == null) {
View Full Code Here

        // at axis2
        Map endPointMap = axisService.getEndpoints();
        for (Object o : endPointMap.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            AxisEndpoint point = (AxisEndpoint) entry.getValue();
            AxisBinding binding = point.getBinding();

            if (binding.getName().getLocalPart().equals(bindingName)) {
                binding.getPolicySubject().clear();
                binding.getPolicySubject().attachPolicy(policy);
            }
View Full Code Here

        // at axis2
        Map endPointMap = axisService.getEndpoints();
        for (Object o : endPointMap.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            AxisEndpoint point = (AxisEndpoint) entry.getValue();
            AxisBinding binding = point.getBinding();

            if (binding.getName().getLocalPart().equals(bindingName)) {
                Iterator operations = binding.getChildren();
                while (operations.hasNext()) {
                    AxisBindingOperation currentOperation =
View Full Code Here

        // at axis2
        Map endPointMap = axisService.getEndpoints();
        for (Object o : endPointMap.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            AxisEndpoint point = (AxisEndpoint) entry.getValue();
            AxisBinding binding = point.getBinding();

            if (binding.getName().getLocalPart().equals(bindingName)) {
                Iterator operations = binding.getChildren();
                while (operations.hasNext()) {
                    AxisBindingOperation currentOperation =
View Full Code Here

                prefix = transportInName.toUpperCase();
            }

            if (!Constants.TRANSPORT_MAIL.equalsIgnoreCase(transportInName)) {
                // Creates a default SOAP 1.1 endpoint
                AxisEndpoint soap11Endpoint = new AxisEndpoint();
                String soap11EndpointName = prefix + WSDL2Constants.DEFAULT_SOAP11_ENDPOINT_NAME;
                soap11Endpoint.setName(soap11EndpointName);
                soap11Endpoint.setBinding(soap11Binding);
                soap11Endpoint.setParent(axisService);
                soap11Endpoint.setTransportInDescription(transportInName);
                axisService.addEndpoint(soap11EndpointName, soap11Endpoint);
            }

            // Creates a default SOAP 1.2 endpoint
            AxisEndpoint soap12Endpoint = new AxisEndpoint();
            String soap12EndpointName = prefix + WSDL2Constants.DEFAULT_SOAP12_ENDPOINT_NAME;
            soap12Endpoint.setName(soap12EndpointName);
            soap12Endpoint.setBinding(soap12Binding);
            soap12Endpoint.setParent(axisService);
            soap12Endpoint.setTransportInDescription(transportInName);
            axisService.addEndpoint(soap12EndpointName, soap12Endpoint);
            axisService.setEndpointName(soap12EndpointName);

            // Creates a HTTP endpoint if its http or https transport is used
            if (needHttp) {
                AxisEndpoint httpEndpoint = new AxisEndpoint();
                String httpEndpointName = prefix + WSDL2Constants.DEFAULT_HTTP_ENDPOINT_NAME;
                httpEndpoint.setName(httpEndpointName);
                httpEndpoint.setBinding(httpBinding);
                httpEndpoint.setParent(axisService);
                httpEndpoint.setTransportInDescription(transportInName);
                axisService.addEndpoint(httpEndpointName, httpEndpoint);
            }
        }
    }
View Full Code Here

        // Get all bindings
        ArrayList<String> bindingsList = new ArrayList<String>();
        Map endPointMap = axisService.getEndpoints();
        for (Object o : endPointMap.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            AxisEndpoint point = (AxisEndpoint) entry.getValue();

            String currentBinding = point.getBinding().getName().getLocalPart().toString();
            if ((!currentBinding.contains("HttpBinding")) &&
                (!bindingsList.contains(currentBinding))) {
                bindingsList.add(currentBinding);
            }
        }
View Full Code Here

        AxisService axisServce = inMessage.getAxisService();
        axisServce.addParameter(WSDL2FormGenerator.LAST_TOUCH_TIME,
                Long.valueOf(System.currentTimeMillis()));
        Map endpoints = axisServce.getEndpoints();
        Set set = endpoints.keySet();
        AxisEndpoint endpoint = null;
        for (Iterator iterator = set.iterator(); iterator.hasNext();) {
            String key = (String) iterator.next();
            endpoint = (AxisEndpoint) endpoints.get(key);
            String endpointURL = endpoint.getEndpointURL();
            if (endpointURL.indexOf("http://") > -1) {
                AxisBinding binding = endpoint.getBinding();
                String wsoapVersion =
                        (String) binding.getProperty(WSDL2Constants.ATTR_WSOAP_VERSION);
                String inSOAPNamespace = env.getNamespace().getNamespaceURI();
                if (!inSOAPNamespace.equals(wsoapVersion)) {
                    continue;
                }
                break;
            }

        }
        if (endpoint == null) {
            String msg = ProxyMessageReceiver.class.getName() + " cannot find real endpoint";
            log.error(msg);
            throw new AxisFault(msg);
        }
        ConfigurationContext configCtx =
                WSDL2FormServiceComponent.getConfigurationContextService().getClientConfigContext();
        //Create ServiceClient with deafult config context.
        ServiceClient client = new ServiceClient(configCtx, null);
        OMElement element = env.getBody().getFirstElement();
        if (element != null) {
            element.detach();
        }
        Options options = new Options();
        options.setTo(new EndpointReference(endpoint.getEndpointURL()));
        options.setAction(inMessage.getWSAAction());
        options.setSoapVersionURI(env.getNamespace().getNamespaceURI());
        options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);
        options.setTimeOutInMilliSeconds(1000*60*10);
        client.setOptions(options);
View Full Code Here

                    Map endpointsMap = service.getEndpoints();
                    Iterator iterator = endpointsMap.values().iterator();
                    String[] eprs = new String[endpointsMap.size()];
                    int i=0;
                    while (iterator.hasNext()) {
                        AxisEndpoint axisEndpoint = (AxisEndpoint) iterator.next();
                        eprs[i] = axisEndpoint.getEndpointURL();
                        i++;
                    }
                    service.setEPRs(eprs);

                    // With the change to the deployment mechanism in axis2 now it checks weather a
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.AxisEndpoint

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.