Examples of AxisEndpoint


Examples of org.apache.axis2.description.AxisEndpoint

        + protocol.substring(1, protocol.length()).toLowerCase();

    String serviceName = axisService.getName();
    String soap11EndpointName = serviceName + protocol + "Soap11Endpoint";

    AxisEndpoint httpSoap11Endpoint = new AxisEndpoint();
    httpSoap11Endpoint.setName(soap11EndpointName);
    httpSoap11Endpoint.setParent(axisService);
    httpSoap11Endpoint.setEndpointURL(url.toString());
    httpSoap11Endpoint.setTransportInDescription(url.getProtocol());

    populateSoap11Endpoint(axisService, httpSoap11Endpoint, null);
    axisService.addEndpoint(httpSoap11Endpoint.getName(),
        httpSoap11Endpoint);
    // setting soap11 endpoint as the default endpoint
    axisService.setEndpointName(soap11EndpointName);
  }
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

        + protocol.substring(1, protocol.length()).toLowerCase();

    String serviceName = axisService.getName();
    String soap12EndpointName = serviceName + protocol + "Soap12Endpoint";

    AxisEndpoint httpSoap12Endpoint = new AxisEndpoint();
    httpSoap12Endpoint.setName(soap12EndpointName);
    httpSoap12Endpoint.setParent(axisService);
    httpSoap12Endpoint.setEndpointURL(url.toString());
    httpSoap12Endpoint.setTransportInDescription(url.getProtocol());

    populateSoap12Endpoint(axisService, httpSoap12Endpoint, null);
    axisService.addEndpoint(httpSoap12Endpoint.getName(),
        httpSoap12Endpoint);
  }
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

                requestURIOperationDispatcher.invoke(msgContext);
            }

            AxisOperation axisOperation;
            if ((axisOperation = msgContext.getAxisOperation()) != null) {
                AxisEndpoint axisEndpoint =
                        (AxisEndpoint) msgContext.getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME);
                if (axisEndpoint != null) {
                    AxisBindingOperation axisBindingOperation = (AxisBindingOperation) axisEndpoint
                            .getBinding().getChild(axisOperation.getName());
                    msgContext.setProperty(Constants.AXIS_BINDING_OPERATION, axisBindingOperation);
                }
                msgContext.setAxisOperation(axisOperation);
            }
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

    String protocol = url.getProtocol();
    protocol = protocol.substring(0, 1).toUpperCase()
        + protocol.substring(1, protocol.length()).toLowerCase();

    String httpEndpointName = serviceName + protocol + "Endpoint";
    AxisEndpoint httpEndpoint = new AxisEndpoint();
    httpEndpoint.setName(httpEndpointName);
    httpEndpoint.setParent(axisService);
    httpEndpoint.setEndpointURL(url.toString());
    httpEndpoint.setTransportInDescription(url.getProtocol());
    populateHttpEndpoint(axisService, httpEndpoint, null);
    axisService.addEndpoint(httpEndpoint.getName(), httpEndpoint);
  }
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

    Map map = service.getEndpoints();
    String soapVersion = (identifier.indexOf("soap12") > -1) ? SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI
        : SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI;

    for (Iterator iterator = map.values().iterator(); iterator.hasNext();) {
      AxisEndpoint axisEndpoint = (AxisEndpoint) iterator.next();
      AxisBinding axisBinding = axisEndpoint.getBinding();
      String wsoap = (String) axisBinding
          .getProperty(WSDL2Constants.ATTR_WSOAP_VERSION);
      if (soapVersion.equals(wsoap)) {
        String[] identifiers = identifier.split("/");
        int key = identifiers.length;
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

        }
        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

Examples of org.apache.axis2.description.AxisEndpoint

        axisService.setDocumentation("Tuscany configured AxisService for service: " + endpointURL);
       
        // TODO - again, do we ever have more than one endpoint
        //        on the service side?
        for (Iterator i = axisService.getEndpoints().values().iterator(); i.hasNext();) {
            AxisEndpoint ae = (AxisEndpoint)i.next();
            if (endpointURL.startsWith("jms")) {
// not in Axis2 1.5.1
//                Parameter qcf = new Parameter(JMSConstants.CONFAC_PARAM, null);
//                qcf.setValue(DEFAULT_QUEUE_CONNECTION_FACTORY);
//                axisService.addParameter(qcf);
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

            });
            } 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

Examples of org.apache.axis2.description.AxisEndpoint

        assertNotNull(binding.getChild(bindingOperation2.getName()));
        binding.setProperty(WSDL2Constants.HTTP_LOCATION_TABLE, httpLocationTable);

        // adding Http AxisEndpoint, HttpBinding to service
        AxisEndpoint axisEndpoint = new AxisEndpoint();
        axisEndpoint.setBinding(binding);
        axisEndpoint.setName("StockServiceHttpEndpoint");
        axisService.addEndpoint("StockServiceHttpEndpoint", axisEndpoint);
        axisService.setEndpointName("StockServiceHttpEndpoint");
        axisService.setBindingName("StockServiceHttpBinding");
        axisService.setEndpointURL("http://127.0.0.1:" + (UtilServer.TESTING_PORT) +
                                   "/axis2/services/StockService.StockServiceHttpEndpoint/");
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

    }

    private AxisBinding findBinding() {
        if (axisService != null) {
            if (axisService.getEndpointName() != null) {
                AxisEndpoint axisEndpoint = axisService
                        .getEndpoint(axisService.getEndpointName());
                if (axisEndpoint != null) {
                    return axisEndpoint.getBinding();
                }
            }
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.