Examples of AxisBinding


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

Examples of org.apache.axis2.description.AxisBinding

        axisConfig = configContext.getAxisConfiguration();

        createAnAxisService();
        createAnAxisModule();

        soapBinding = new AxisBinding();
        soapBinding.setName(new QName(Java2WSDLConstants.BINDING_NAME_SUFFIX));
        soapBinding.setType(WSDL2Constants.URI_WSDL2_SOAP);

        soapBinding12 = new AxisBinding();
        soapBinding12.setName(new QName(Java2WSDLConstants.SOAP12BINDING_NAME_SUFFIX));
        soapBinding12.setType(WSDL2Constants.URI_WSDL2_SOAP);

        echoService = axisConfig.getService("echo");
      
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

        QName serviceName = new QName("weather");
        QName operationName = new QName("c2f");
        weatherService =
                org.apache.axis2.util.Utils.createSimpleService(serviceName,org.wso2.carbon.service.mgt.weather.weather.class.getName(),operationName);

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

        service.addOperation(axisOp);

        AxisEndpoint endpoint = new AxisEndpoint();
        endpoint.setName("NullService");

        AxisBinding binding = new AxisBinding();
        AxisBindingOperation bindingOp = new AxisBindingOperation();

        bindingOp.setAxisOperation(axisOp);
        binding.addChild(bindingOp);
        endpoint.setBinding(binding);
        service.addEndpoint(endpoint.getName(), endpoint);
        service.setEndpointName(endpoint.getName());

        service.mapActionToOperation(operationName.getLocalPart(), axisOp);
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

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

Examples of org.apache.axis2.description.AxisBinding

        service.addOperation(axisOp);

        AxisEndpoint endpoint = new AxisEndpoint();
        endpoint.setName("NullService");

        AxisBinding binding = new AxisBinding();
        AxisBindingOperation bindingOp = new AxisBindingOperation();

        bindingOp.setName(axisOp.getName());
        bindingOp.setAxisOperation(axisOp);
        binding.addChild(bindingOp);
        endpoint.setBinding(binding);
        service.addEndpoint(endpoint.getName(), endpoint);
        service.setEndpointName(endpoint.getName());

        service.mapActionToOperation(operationName.getLocalPart(), axisOp);
View Full Code Here

Examples of org.apache.axis2.description.AxisBinding

                        WSDLConstants.MESSAGE_LABEL_IN_VALUE));
                AxisEndpoint axisEndpoint =
                        (AxisEndpoint) msgctx.getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME);

                if (axisEndpoint != null) {
                    AxisBinding axisBinding = axisEndpoint.getBinding();
          AxisBindingOperation axisBindingOperation = (AxisBindingOperation) axisBinding
              .getChild(axisOperation.getName());
          if (axisBindingOperation == null) {
            String localName = axisOperation.getName()
                .getLocalPart();
            AxisBindingOperation bindingOp = null;
            for (Iterator<AxisBindingOperation> iterator = axisBinding.getChildren(); iterator
                .hasNext();) {
              bindingOp = (AxisBindingOperation) iterator.next();
              if (localName.equals(bindingOp.getName().getLocalPart())) {
                axisBindingOperation = bindingOp;
                break;
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.