Package javax.xml.ws

Examples of javax.xml.ws.BindingType


    if (_mode != Service.Mode.MESSAGE)
      throw new ConfigurationException(L.l("{0} implements Provider<SOAPMessage> must have @ServiceMode annotation with value Service.Mode == MESSAGE", _class.getName()));

    try {
      BindingType bindingType
        = (BindingType) _class.getAnnotation(BindingType.class);

      if (bindingType != null &&
          bindingType.value().equals(SOAPBinding.SOAP12HTTP_BINDING))
        _factory = MessageFactory.newInstance(SOAP_1_2_PROTOCOL);
      else
        _factory = MessageFactory.newInstance(SOAP_1_1_PROTOCOL);
    }
    catch (SOAPException e) {
View Full Code Here


  protected SourceProviderEncoding(Object service)
    throws ConfigurationException
  {
    super(service);

    BindingType bindingType
      = (BindingType) _class.getAnnotation(BindingType.class);

    if (bindingType != null) {
      if (bindingType.value().equals(SOAPBinding.SOAP11HTTP_BINDING))
        _soapNamespace = URI_NS_SOAP_1_1_ENVELOPE;
      else if (bindingType.value().equals(SOAPBinding.SOAP12HTTP_BINDING))
        _soapNamespace = URI_NS_SOAP_1_2_ENVELOPE;
    }
  }
View Full Code Here

      throw new ConfigurationException(e);
    }
   
    PortInfo portInfo = null;

    BindingType bindingType
      = (BindingType) _class.getAnnotation(BindingType.class);

    WebServiceProvider provider =
      (WebServiceProvider) _class.getAnnotation(WebServiceProvider.class);

    if (provider != null && bindingType != null) {
      QName portName = new QName(provider.targetNamespace(),
                                 provider.portName());
      QName serviceName = new QName(provider.targetNamespace(),
                                    provider.serviceName());

      portInfo = new PortInfoImpl(bindingType.value(), portName, serviceName);
    }

    HandlerChain handlerChain =
      (HandlerChain) _class.getAnnotation(HandlerChain.class);
View Full Code Here

            return false;
        }
    }
   
    public static String getBindingURIFromAnnot(Class clazz, ClassLoader loader) {
        BindingType bindingType = (BindingType) clazz.getAnnotation(BindingType.class);
        if (bindingType == null) {
            return "";
        } else {
            return bindingType.value();
        }
    }
View Full Code Here

        }
    }

    protected boolean isSOAP12() {
        if (!this.context.optionSet(ToolConstants.CFG_SOAP12)) {
            BindingType bType = getServiceClass().getAnnotation(BindingType.class);
            if (bType != null) {
                return SOAPBinding.SOAP12HTTP_BINDING.equals(bType.value());
            }
            return false;
        }
        return true;
    }
View Full Code Here

     * <code>DescriptionBuilderComposite</code>
     *
     * @param composite - <code>DescriptionBuildercomposite</code>
     */
    private void attachBindingTypeAnnotation(DescriptionBuilderComposite composite) {
        BindingType bindingType = (BindingType)ConverterUtils.getAnnotation(
                BindingType.class, serviceClass);
        if (bindingType != null) {
            // Attach @BindingType annotation data
            BindingTypeAnnot btAnnot = BindingTypeAnnot.createBindingTypeAnnotImpl();
            btAnnot.setValue(bindingType.value());
            composite.setBindingTypeAnnot(btAnnot);
        }
    }
View Full Code Here

        }
        if (mtom != null) {
            features.add(new MTOMFeature(mtom.enabled(), mtom.threshold()));
        } else {
            //deprecated way to set mtom
            BindingType bt = implInfo.getImplementorClass().getAnnotation(BindingType.class);
            if (bt != null
                && (SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(bt.value())
                || SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(bt.value()))) {
                features.add(new MTOMFeature(true));
            }
        }

View Full Code Here

        }
        if (mtom != null) {
            features.add(new MTOMFeature(mtom.enabled(), mtom.threshold()));
        } else {
            //deprecated way to set mtom
            BindingType bt = implInfo.getImplementorClass().getAnnotation(BindingType.class);
            if (bt != null
                && (SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(bt.value())
                || SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(bt.value()))) {
                features.add(new MTOMFeature(true));               
            }
        }
       
View Full Code Here

        }
    }

    protected boolean isSOAP12() {
        if (!this.context.optionSet(ToolConstants.CFG_SOAP12)) {
            BindingType bType = getServiceClass().getAnnotation(BindingType.class);
            if (bType != null) {
                return SOAPBinding.SOAP12HTTP_BINDING.equals(bType.value());
            }
            return false;
        }
        return true;
    }
View Full Code Here

        }
        if (mtom != null) {
            features.add(new MTOMFeature(mtom.enabled(), mtom.threshold()));
        } else {
            //deprecated way to set mtom
            BindingType bt = implInfo.getImplementorClass().getAnnotation(BindingType.class);
            if (bt != null
                && (SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(bt.value())
                || SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(bt.value()))) {
                features.add(new MTOMFeature(true));
            }
        }

View Full Code Here

TOP

Related Classes of javax.xml.ws.BindingType

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.