Examples of AxisEndpoint


Examples of org.apache.axis2.description.AxisEndpoint

                AxisService axisService = wsRequest.sender.getAxisService();
                if (axisService.getChild(operationName) == null) {
                    throw new CarbonException("No operation with the name " + operationName.getLocalPart() +
                            " found in the service been called");
                }
                AxisEndpoint axisEndpoint = axisService.getEndpoint(axisService.getEndpointName());
                AxisBindingMessage axisBindingMessage =
                        (AxisBindingMessage) axisEndpoint.getBinding().getChild(operationName)
                                .getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
                policy = axisBindingMessage.getEffectivePolicy();
            } else if (useUT) {
                String xmlPath = "scenarios/scenario1-policy.xml";
                try {
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

        if (queryParameterSeparator == null) {
            queryParameterSeparator =
                    WSDL20DefaultValueHolder.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR_DEFAULT;
        }

        AxisEndpoint axisEndpoint =
                (AxisEndpoint) messageContext.getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME);
        if (axisEndpoint != null) {
            AxisBinding axisBinding = axisEndpoint.getBinding();
            String soapVersion =
                    (String) axisBinding.getProperty(WSDL2Constants.ATTR_WSOAP_VERSION);
            soapFactory = getSOAPFactory(soapVersion);
        } else {
            soapFactory = getSOAPFactory(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
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

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

Examples of org.apache.axis2.description.AxisEndpoint

            // Fetch and attach Binding, Binding operation and their Message policies
            Map endPointMap = axisService.getEndpoints();
            for (Object o : endPointMap.entrySet()) {
                Map.Entry entry = (Map.Entry) o;
                AxisEndpoint point = (AxisEndpoint) entry.getValue();
                AxisBinding currentAxisBinding = point.getBinding();

                // Fetch binding policies
                String bindingPath = serviceResourcePath + RegistryResources.ServiceProperties
                        .BINDINGS + currentAxisBinding.getName().getLocalPart();
                if (configRegistry.resourceExists(bindingPath)) {
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

                }
            }
            // 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

Examples of org.apache.axis2.description.AxisEndpoint

                    .getConfigurationContext().getServiceContextPath());
            String httpMethod = (String) messageContext.getProperty(HTTPConstants.HTTP_METHOD);

            if (httpLocation != null) {
                httpLocation = httpMethod + httpLocation;
                AxisEndpoint axisEndpoint = (AxisEndpoint) messageContext
                        .getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME);
                // Here we check whether the request was dispatched to the correct endpoint. If it
                // was we can dispatch the operation using the HTTPLocationDispatcher table of that
                // specific endpoint. In most cases we wont be able to do this. So as a last resort
                // iterate through the endpoint map and try to dispatch the operation.
                if (axisEndpoint != null) {
                    Map httpLocationTable = (Map) axisEndpoint.getBinding()
                            .getProperty(WSDL2Constants.HTTP_LOCATION_TABLE);
                    if (httpLocationTable != null) {
                        return getOperationFromHTTPLocation(httpLocation, httpLocationTable);
                    }
                } else {
                    Map endpoints = axisService.getEndpoints();
                    if (endpoints != null) {
                        Iterator iterator = endpoints.values().iterator();
                        while (iterator.hasNext()) {
                            AxisEndpoint endpoint = (AxisEndpoint) iterator.next();
                            Map httpLocationTable = (Map) endpoint.getBinding()
                                    .getProperty(WSDL2Constants.HTTP_LOCATION_TABLE);
                            if (httpLocationTable != null) {
                                AxisOperation axisOperation =
                                        getOperationFromHTTPLocation(httpLocation,
                                                                     httpLocationTable);
                                if (axisOperation != null) {
                                    messageContext.setProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME,
                                                               endpoint);
                                    AxisBinding axisBinding = endpoint.getBinding();
                                    if (axisBinding != null) {
                                        AxisBindingOperation axisBindingOperation =
                                                (AxisBindingOperation) axisBinding
                                                        .getChild(axisOperation.getName());
                                        messageContext.setProperty(Constants.AXIS_BINDING_OPERATION,
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

                msgctx.setAxisOperation(axisOperation);
                //setting axisMessage into messageContext
                msgctx.setAxisMessage(axisOperation.getMessage(
                        WSDLConstants.MESSAGE_LABEL_IN_VALUE));
                AxisEndpoint axisEndpoint =
                        (AxisEndpoint) msgctx.getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME);
                if (axisEndpoint != null) {
                    AxisBindingOperation axisBindingOperation =
                            (AxisBindingOperation) axisEndpoint.getBinding()
                                    .getChild(axisOperation.getName());
                    msgctx
          .setProperty(
              Constants.AXIS_BINDING_MESSAGE,
              axisBindingOperation
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

         * populates soap11 endpoint
         */
        String soap11EndpointName = serviceName + protocol
            + "Soap11Endpoint";

        AxisEndpoint httpSoap11Endpoint = new AxisEndpoint();
        httpSoap11Endpoint.setName(soap11EndpointName);
        httpSoap11Endpoint.setParent(axisService);
        httpSoap11Endpoint.setTransportInDescription(transportName);
        populateSoap11Endpoint(axisService, httpSoap11Endpoint,
            bindingCache);
        axisService.addEndpoint(httpSoap11Endpoint.getName(),
            httpSoap11Endpoint);
        // setting soap11 endpoint as the default endpoint
        axisService.setEndpointName(soap11EndpointName);

        /*
         * generating Soap12 endpoint
         */
        String soap12EndpointName = serviceName + protocol
            + "Soap12Endpoint";
        AxisEndpoint httpSoap12Endpoint = new AxisEndpoint();
        httpSoap12Endpoint.setName(soap12EndpointName);
        httpSoap12Endpoint.setParent(axisService);
        httpSoap12Endpoint.setTransportInDescription(transportName);
        populateSoap12Endpoint(axisService, httpSoap12Endpoint,
            bindingCache);
        axisService.addEndpoint(httpSoap12Endpoint.getName(),
            httpSoap12Endpoint);

        /*
         * generating Http endpoint
         */
        if ("http".equals(transportName)) {
          String httpEndpointName = serviceName + protocol
              + "Endpoint";
          AxisEndpoint httpEndpoint = new AxisEndpoint();
          httpEndpoint.setName(httpEndpointName);
          httpEndpoint.setParent(axisService);
          httpEndpoint.setTransportInDescription(transportName);
          populateHttpEndpoint(axisService, httpEndpoint, bindingCache);
          axisService.addEndpoint(httpEndpoint.getName(),
              httpEndpoint);
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

         * populates soap11 endpoint
         */
        String soap11EndpointName = serviceName + protocol
            + "Soap11Endpoint";

        AxisEndpoint httpSoap11Endpoint = new AxisEndpoint();
        httpSoap11Endpoint.setName(soap11EndpointName);
        httpSoap11Endpoint.setParent(axisService);
        httpSoap11Endpoint.setTransportInDescription(transportName);
        populateSoap11Endpoint(axisService, httpSoap11Endpoint,
            bindingCache);
        axisService.addEndpoint(httpSoap11Endpoint.getName(),
            httpSoap11Endpoint);
        // setting soap11 endpoint as the default endpoint
        axisService.setEndpointName(soap11EndpointName);

        /*
         * generating Soap12 endpoint
         */
        String soap12EndpointName = serviceName + protocol
            + "Soap12Endpoint";
        AxisEndpoint httpSoap12Endpoint = new AxisEndpoint();
        httpSoap12Endpoint.setName(soap12EndpointName);
        httpSoap12Endpoint.setParent(axisService);
        httpSoap12Endpoint.setTransportInDescription(transportName);
        populateSoap12Endpoint(axisService, httpSoap12Endpoint,
            bindingCache);
        axisService.addEndpoint(httpSoap12Endpoint.getName(),
            httpSoap12Endpoint);

        /*
         * generating Http endpoint
         */
        if ("http".equals(transportName)
            || "https".equals(transportName)) {
          String httpEndpointName = serviceName + protocol
              + "Endpoint";
          AxisEndpoint httpEndpoint = new AxisEndpoint();
          httpEndpoint.setName(httpEndpointName);
          httpEndpoint.setParent(axisService);
          httpEndpoint.setTransportInDescription(transportName);
          populateHttpEndpoint(axisService, httpEndpoint, bindingCache);
          axisService.addEndpoint(httpEndpoint.getName(),
              httpEndpoint);
        }
      }
    }
  }
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.