Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisEndpoint


    }

    private AxisBindingMessage findBindingMessage() {
      if (axisService != null && axisOperation != null ) {
      if (axisService.getEndpointName() != null) {
        AxisEndpoint axisEndpoint = axisService
            .getEndpoint(axisService.getEndpointName());
        if (axisEndpoint != null) {
          AxisBinding axisBinding = axisEndpoint.getBinding();
                    AxisBindingOperation axisBindingOperation = (AxisBindingOperation) axisBinding
              .getChild(axisOperation.getName());

                    //If Binding Operation is not found, just return null
                    if (axisBindingOperation == null) {
View Full Code Here


                }
            }
            // Now add reference parameters we found in the WSDL (if any)
            AxisService service = messageContext.getAxisService();
            if(service != null){
              AxisEndpoint endpoint = service.getEndpoint(service.getEndpointName());
              if(endpoint != null){
                ArrayList referenceparameters = (ArrayList) endpoint.getParameterValue(REFERENCE_PARAMETER_PARAMETER);
                if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) {
                  log.trace("processToEPRReferenceInformation: Reference Parameters from WSDL:" + referenceparameters);
                }
                if(referenceparameters!=null){
                  Iterator iterator = referenceparameters.iterator();
View Full Code Here

                                        = temp[temp.length - 1].substring(periodIndex + 1);
                                messageContext.setProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME,
                                        endpoints.get(endpointName));
                            }
                            String endpointName = temp[0].substring(temp[0].indexOf(".") + 1);
                            AxisEndpoint endpoint = (AxisEndpoint) endpoints.get(endpointName);
                            if (endpoint != null) {
                                messageContext.setProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME,
                                                           endpoint);
                            } else {
                                inferEndpoint(messageContext, axisService);
View Full Code Here

            transport = transportIn.getName();
            if (transport == null) {
                return;
            }
        }
        AxisEndpoint endpoint = null;
        Map endpointMapping = service.getEndpoints();
        String serviceName = service.getName();

        if (msgCtx.isDoingREST()) {
            endpoint = (AxisEndpoint) endpointMapping.get(WSDLUtil.
View Full Code Here

        }
        axisService.setName(name);
        axisService.setEndpointURL(endpointURL);
        axisService.setDocumentation("Tuscany configured AxisService for service: " + endpointURL);
        for ( Iterator i = axisService.getEndpoints().values().iterator(); i.hasNext(); ) {
            AxisEndpoint ae = (AxisEndpoint)i.next();
            if (endpointURL.startsWith("jms") ) {
                Parameter qcf = new Parameter(JMSConstants.CONFAC_PARAM, null);
                qcf.setValue(DEFAULT_QUEUE_CONNECTION_FACTORY);
                axisService.addParameter(qcf);
                break;
View Full Code Here

            });
            } catch ( PrivilegedActionException e ) {
               throw (AxisFault) e.getException();
            }

        AxisEndpoint axisEndpoint = (AxisEndpoint)axisService.getEndpoints().get(axisService.getEndpointName());
        options.setTo(new EndpointReference(axisEndpoint.getEndpointURL()));
        if (axisEndpoint != null) {
            options.setSoapVersionURI((String)axisEndpoint.getBinding().getProperty(WSDL2Constants.ATTR_WSOAP_VERSION));
        }
        return axisService;
    }
View Full Code Here

        String testData = "<wsp:Policy xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\" />";

        String gBp = SerAdmin.getBindingPolicy(weatherService.getName(),"wso2"+Java2WSDLConstants.HTTP_BINDING);        //System.out.println("4. " +gBp);
        assertEquals(testData,gBp);

        AxisEndpoint soapEndpoint;
        AxisEndpoint soap12Endpoint;

        soapEndpoint = new AxisEndpoint();
        String soapEndpointName = ""+ WSDL2Constants.DEFAULT_SOAP11_ENDPOINT_NAME;
        soapEndpoint.setName(soapEndpointName);
        soapEndpoint.setBinding(soapBinding);
        soapEndpoint.setParent(echoService);
        soapEndpoint.setTransportInDescription("http");
        echoService.addEndpoint(soapEndpointName,soapEndpoint);

        soap12Endpoint = new AxisEndpoint();
        String soap12EndpointName = ""+ WSDL2Constants.DEFAULT_SOAP12_ENDPOINT_NAME;
        soap12Endpoint.setName(soap12EndpointName);
        soap12Endpoint.setBinding(soapBinding12);
        soap12Endpoint.setParent(echoService);
        soap12Endpoint.setTransportInDescription("http");
        echoService.addEndpoint(soap12EndpointName,soap12Endpoint);


        SerAdmin.setBindingOperationPolicy(echoService.getName(),soapBinding12.getName().toString(),echoService.getOperationByAction("echoOMElement").getName().toString(),EMPTY_POLICY);
        String gBOP = SerAdmin.getBindingOperationPolicy(echoService.getName(),soapBinding12.getName().toString(),echoService.getOperationByAction("echoOMElement").getName().toString());
View Full Code Here

        AxisBinding httpBinding = new AxisBinding();
        httpBinding.setName(new QName("wso2"+ Java2WSDLConstants.HTTP_BINDING));
        httpBinding.setType(WSDL2Constants.URI_WSDL2_HTTP);

        AxisEndpoint httpEndpoint;
        httpEndpoint = new AxisEndpoint();
        String httpEndpointName = ""+ WSDL2Constants.DEFAULT_HTTP_ENDPOINT_NAME;
        httpEndpoint.setName(httpEndpointName);
        httpEndpoint.setBinding(httpBinding);
        httpEndpoint.setParent(weatherService);
        httpEndpoint.setTransportInDescription("http");
        weatherService.addEndpoint(httpEndpointName,httpEndpoint);

        axisConfig.addService(weatherService);

        AxisServiceGroup testGrp = new AxisServiceGroup();
View Full Code Here

        }
        axisService.setName(name);
        axisService.setEndpointURL(endpointURL);
        axisService.setDocumentation("Tuscany configured AxisService for service: " + endpointURL);
        for (Iterator i = axisService.getEndpoints().values().iterator(); i.hasNext();) {
            AxisEndpoint ae = (AxisEndpoint)i.next();
            if (endpointURL.startsWith("jms")) {
                Parameter qcf = new Parameter(JMSConstants.CONFAC_PARAM, null);
                qcf.setValue(DEFAULT_QUEUE_CONNECTION_FACTORY);
                axisService.addParameter(qcf);
                break;
View Full Code Here

            });
            } catch ( PrivilegedActionException e ) {
               throw (AxisFault) e.getException();
            }

        AxisEndpoint axisEndpoint = (AxisEndpoint)axisService.getEndpoints().get(axisService.getEndpointName());
        options.setTo(new EndpointReference(axisEndpoint.getEndpointURL()));
        if (axisEndpoint != null) {
            options.setSoapVersionURI((String)axisEndpoint.getBinding().getProperty(WSDL2Constants.ATTR_WSOAP_VERSION));
        }
        return axisService;
    }
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.