Package com.ibm.wsdl.extensions.soap

Examples of com.ibm.wsdl.extensions.soap.SOAPBindingImpl


                    BindingInfo bfo = e.getBinding();

                    if (bfo.getBindingId().equals("http://schemas.xmlsoap.org/wsdl/soap/")) {
                        for (Object o : bfo.getExtensors().get()) {
                            if (o instanceof SOAPBindingImpl) {
                                SOAPBindingImpl soapB = (SOAPBindingImpl)o;
                                if (soapB.getTransportURI().equals("http://schemas.xmlsoap.org/soap/http")) {
                                    epfo = e;
                                    break;
                                }
                            }
                        }
View Full Code Here


    private ArrayList<String> getBindingProtocolAndTransport(BindingImpl binding) {
        ArrayList<String> protocolNTransport = new ArrayList<String>();
        if (binding.getExtensibilityElements().iterator().hasNext()) {
            String className = binding.getExtensibilityElements().iterator().next().getClass().getSimpleName();
            if (UDDIConstants.SOAP11_BINDING_CLASS.equals(className)) {
                SOAPBindingImpl soap11BindingProtocol =
                        (SOAPBindingImpl) binding.getExtensibilityElements().iterator().next();
                String transportUri = soap11BindingProtocol.getTransportURI();

                protocolNTransport.add(UDDIConstants.SOAP_PROTOCOL);
                protocolNTransport.add(UDDIConstants.SOAP_PROTOCOL_TMODEL_KEY);

                if (UDDIConstants.SOAP_OVER_HTTP.equals(transportUri)) {
View Full Code Here

   * @param parents A list of parents of the SOAP binding element.
   * @param valInfo The validation info for this validation.
   */
  protected void validateBinding(Object element, List parents, IWSDL11ValidationInfo valInfo)
  {
    SOAPBindingImpl sb = (SOAPBindingImpl)element;

    String style = sb.getStyle();
    String uri = sb.getTransportURI();

    if (style != null && !style.equalsIgnoreCase(RPC) && !style.equalsIgnoreCase(DOCUMENT))
    {
      valInfo.addError(
        messagegenerator.getString(_ERROR_INVALID_BINDING_STYLE, QUOTE + sb.getStyle() + QUOTE), element);
    }
    if (uri.equalsIgnoreCase(EMPTY_STRING))
    {
      valInfo.addError(messagegenerator.getString(_ERROR_INVALID_BINDING_URI), element);
    }
View Full Code Here

        portType.addOperation(operation);
        portType.setUndefined(false);
        def.addPortType(portType);

        // SOAP binding
        SOAPBinding soapBinding = new SOAPBindingImpl();
        soapBinding.setStyle("rpc");
        soapBinding.setTransportURI("http://schemas.xmlsoap.org/soap/http");

        Binding binding = def.createBinding();
        binding.setQName(new QName(TNS, this.name + "SoapBinding"));
        binding.setPortType(portType);
        binding.setUndefined(false);
View Full Code Here

            binding.setUndefined(false);

            /*
             * Create SOAPBinding for WSDL Binding
             */
            SOAPBinding soapbinding = new SOAPBindingImpl();
            soapbinding.setTransportURI("http://schemas.xmlsoap.org/soap/http");
            soapbinding.setStyle("document");
            binding.addExtensibilityElement(soapbinding);

             javax.xml.parsers.DocumentBuilderFactory domfactory = javax.xml.parsers.DocumentBuilderFactory
                    .newInstance();
            javax.xml.parsers.DocumentBuilder builder = null;
View Full Code Here

                    BindingInfo bfo = e.getBinding();

                    if (bfo.getBindingId().equals("http://schemas.xmlsoap.org/wsdl/soap/")) {
                        for (Object o : bfo.getExtensors().get()) {
                            if (o instanceof SOAPBindingImpl) {
                                SOAPBindingImpl soapB = (SOAPBindingImpl)o;
                                if (soapB.getTransportURI().equals("http://schemas.xmlsoap.org/soap/http")) {
                                    epfo = e;
                                    break;
                                }
                            }
                        }
View Full Code Here

                    BindingInfo bfo = e.getBinding();

                    if (bfo.getBindingId().equals("http://schemas.xmlsoap.org/wsdl/soap/")) {
                        for (Object o : bfo.getExtensors().get()) {
                            if (o instanceof SOAPBindingImpl) {
                                SOAPBindingImpl soapB = (SOAPBindingImpl)o;
                                if (soapB.getTransportURI().equals("http://schemas.xmlsoap.org/soap/http")) {
                                    epfo = e;
                                    break;
                                }
                            }
                        }
View Full Code Here

                    BindingInfo bfo = e.getBinding();

                    if (bfo.getBindingId().equals("http://schemas.xmlsoap.org/wsdl/soap/")) {
                        for (Object o : bfo.getExtensors().get()) {
                            if (o instanceof SOAPBindingImpl) {
                                SOAPBindingImpl soapB = (SOAPBindingImpl)o;
                                if (soapB.getTransportURI().equals("http://schemas.xmlsoap.org/soap/http")) {
                                    epfo = e;
                                    break;
                                }
                            }
                        }
View Full Code Here

                    }
                    List binding = definition.getService(getTargetService()).getPort(
                            getTargetEndpoint()).getBinding().getExtensibilityElements();
                    if (binding == null || binding.size() == 0) {
                        //no binding info in the internal wsdl so we need add default soap11 binding
                        SOAPBinding soapBinding = new SOAPBindingImpl();
                        soapBinding.setTransportURI("http://schemas.xmlsoap.org/soap/http");
                        soapBinding.setStyle("document");
                        definition.getService(getTargetService()).getPort(getTargetEndpoint()).getBinding().
                            addExtensibilityElement(soapBinding);
                    }
                   
                }
View Full Code Here

        Binding binding = def.createBinding();
        binding.setQName(new QName(nameSpaceURI, portName + WSDL_SOAP_BINDING_SUFFIX));
        binding.setUndefined(false);
        binding.setPortType(portType);

        SOAPBindingImpl soapBindingImpl = new SOAPBindingImpl();
        soapBindingImpl.setStyle(DOCUMENT);
        soapBindingImpl.setTransportURI(SOAP_HTTP_NAMESPACE);
        binding.addExtensibilityElement(soapBindingImpl);
        if (wsPolicyRef != null) {
            log.info("policy info is not null");
            binding.addExtensibilityElement(wsPolicyRef);
        }
View Full Code Here

TOP

Related Classes of com.ibm.wsdl.extensions.soap.SOAPBindingImpl

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.