Examples of AxisBinding


Examples of org.apache.axis2.description.AxisBinding

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

Examples of org.apache.axis2.description.AxisBinding

        // 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 =
                            (AxisBindingOperation) operations.next();
                    if (currentOperation.getName().toString().equals(operationName)) {
                        currentOperation.getPolicySubject().clear();
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

        // 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 =
                            (AxisBindingOperation) operations.next();
                    if (currentOperation.getName().toString().equals(operationName)) {
                        currentOperation.getChild(messageType).getPolicySubject().clear();
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

        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;
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

     *
     * @param name          The name of the service
     * @param interfaceName The interface name
     */
    private void createDefaultHTTPBinding(String name, String interfaceName) {
        httpBinding = new AxisBinding();
        httpBinding.setName(new QName(name + Java2WSDLConstants.HTTP_BINDING));
        httpBinding.setType(WSDL2Constants.URI_WSDL2_HTTP);
        httpBinding.setProperty(WSDL2Constants.INTERFACE_LOCAL_NAME, interfaceName);
        httpBinding.setProperty(WSDL2Constants.HTTP_LOCATION_TABLE, httpLocationTable);
    }
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

     *
     * @param name          The name of the service
     * @param interfaceName The interface name
     */
    private void createDefaultSOAP12Binding(String name, String interfaceName) {
        soap12Binding = new AxisBinding();
        soap12Binding.setName(new QName(name + Java2WSDLConstants.SOAP12BINDING_NAME_SUFFIX));
        soap12Binding.setType(WSDL2Constants.URI_WSDL2_SOAP);
        soap12Binding.setProperty(WSDL2Constants.ATTR_WSOAP_PROTOCOL, WSDL2Constants.HTTP_PROTOCAL);
        soap12Binding.setProperty(WSDL2Constants.ATTR_WSOAP_VERSION,
                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

     *
     * @param name          The name of the service
     * @param interfaceName The interface name
     */
    private void createDefaultSOAP11Binding(String name, String interfaceName) {
        soap11Binding = new AxisBinding();
        soap11Binding.setName(new QName(name + Java2WSDLConstants.BINDING_NAME_SUFFIX));
        soap11Binding.setType(WSDL2Constants.URI_WSDL2_SOAP);
        soap11Binding.setProperty(WSDL2Constants.ATTR_WSOAP_PROTOCOL, WSDL2Constants.HTTP_PROTOCAL);
        soap11Binding.setProperty(WSDL2Constants.ATTR_WSOAP_VERSION,
                SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

        }

        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);
        }
        EndpointReference endpointReference = messageContext.getTo();
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

        }

        AxisBindingMessage bindingMessage =
          (AxisBindingMessage) getProperty(Constants.AXIS_BINDING_MESSAGE);

        AxisBinding binding;

        // If AxisBindingMessage is not set, try to find the binding message from the AxisService
        if (bindingMessage == null) {
          bindingMessage = findBindingMessage();
        }

        if (bindingMessage != null) {
            return bindingMessage.getEffectivePolicy();
            // If we can't find the AxisBindingMessage, then try the AxisBinding
        } else if ((binding = findBinding()) != null) {
            return binding.getEffectivePolicy();
            // If we can't find the AxisBindingMessage, then try the AxisMessage
        } else if (axisMessage != null) {
            return axisMessage.getEffectivePolicy();
        } else {
            if (axisService != null){
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

      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) {
                       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.