Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisEndpoint


    public void testFindService() throws AxisFault {
        MessageContext messageContext;

        //Global services
        AxisService as1 = new AxisService("Service1");
        as1.addEndpoint("Service1Endpoint", new AxisEndpoint());

        //Hierarchical Services
        AxisService as2 = new AxisService("foo/bar/Version");
        AxisService as3 = new AxisService("foo/bar/1.0.1/Echo");
        as2.addEndpoint("VersionEndpoint", new AxisEndpoint());
        as3.addEndpoint("EchoEndpoint", new AxisEndpoint());


        AxisOperation operation1 = new InOnlyAxisOperation(new QName("operation1"));
        AxisOperation operation2 = new InOnlyAxisOperation(new QName("operation2"));
        as1.addOperation(operation1);
View Full Code Here


    }
    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

        }
        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

        }
        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

        }
        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

    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

 
  public static void populateEPMap(AxisService service) {
      HashMap map = new HashMap();
      for (Iterator iterator = service.getEndpoints().values().iterator(); iterator
              .hasNext();) {
          AxisEndpoint endpoint = (AxisEndpoint) iterator.next();
          String transportInDescription = endpoint
                  .getTransportInDescription();
          if (transportInDescription == null) {
              continue;
          }
          AxisBinding binding = endpoint.getBinding();
          if (binding != null) {
              if (isSoap11Binding(binding)) {
                  map.put(transportInDescription + ":soap11", endpoint);
              } else if (isSoap12Binding(binding)) {
                  map.put(transportInDescription + ":soap12", endpoint);
View Full Code Here

  public static void addModuleBindingOperation(AxisService service, AxisOperation operation) {
            ArrayList bindings = new ArrayList();
            Map endpointsMap = service.getEndpoints();
         
            for (Iterator iterator = endpointsMap.values().iterator(); iterator.hasNext();) {
                AxisEndpoint endpoint = (AxisEndpoint) iterator.next();
                AxisBinding binding = endpoint.getBinding();
          AxisBindingOperation bindingOperation = new AxisBindingOperation();
          bindingOperation.setName(operation.getName());
          bindingOperation.setAxisOperation(operation);
     
          if (!bindings.contains(binding.getName())) {
View Full Code Here

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

      transport = transportIn.getName();
      if (transport == null) {
        return;
      }
    }
    AxisEndpoint endpoint = null;
    HashMap endpointMapping = service.getEpMap();

    if (msgCtx.isDoingREST()) {
      endpoint = (AxisEndpoint) endpointMapping.get(transport + ":http");
    } else {
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.