Package javax.wsdl.extensions.soap

Examples of javax.wsdl.extensions.soap.SOAPBinding


            }
        }

        // check soap:binding element
        Binding binding = port.getBinding();
        SOAPBinding soapBinding =
            (SOAPBinding) getExtElem(binding,
                SOAPBinding.class,
                binding.getExtensibilityElements());
        if (soapBinding != null) {
            style = soapBinding.getStyle();
            if (style == null)
                style = "document"; //it is default style value as of WSDL 1.1

            String transport = soapBinding.getTransportURI();
            if ((ja != null
                && !"http://schemas.xmlsoap.org/soap/jms".equals(transport))
                || (sa != null
                    && !"http://schemas.xmlsoap.org/soap/http".equals(
                        transport))) {
View Full Code Here


        }

        // check soap:binding element
        String style = null;
        Binding binding = port.getBinding();
        SOAPBinding soapBinding =
            (SOAPBinding) getExtElem(binding,
                SOAPBinding.class,
                binding.getExtensibilityElements());
        if (soapBinding != null) {
            style = soapBinding.getStyle();
            if (!"rpc".equals(style)) {
                throw new WSIFException("unsupported style " + style + " for " + soapBinding);
            }
            String transport = soapBinding.getTransportURI();
            if (!"http://schemas.xmlsoap.org/soap/http".equals(transport)) {
                throw new WSIFException(
                    "unsupported transport " + transport + " for " + soapBinding);
            }
        }
View Full Code Here

        Iterator extElementsIterator = extElements.iterator();
        String bindingS = javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING; //this is the default.
        while (extElementsIterator.hasNext()) {
            Object o = extElementsIterator.next();
            if (o instanceof SOAPBinding) {
                SOAPBinding sp = (SOAPBinding)o;
                if (sp.getElementType().getNamespaceURI().equals("http://schemas.xmlsoap.org/wsdl/soap/")) {
                    bindingS = javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING;
                }
            } else if (o instanceof SOAP12Binding) {
                SOAP12Binding sp = (SOAP12Binding)o;
                if (sp.getElementType().getNamespaceURI().equals("http://schemas.xmlsoap.org/wsdl/soap12/")) {
                    bindingS = javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING;
                }
            } else if (o instanceof HTTPBinding) {
                HTTPBinding sp = (HTTPBinding)o;
                if (sp.getElementType().getNamespaceURI().equals("http://schemas.xmlsoap.org/wsdl/http/")) {
                    bindingS = javax.xml.ws.http.HTTPBinding.HTTP_BINDING;
                }
            }
        }
        return bindingS;
View Full Code Here

        }
        return service;
    }

    private Style getStyle(Binding binding) throws DeploymentException {
        SOAPBinding soapBinding = (SOAPBinding) SchemaInfoBuilder.getExtensibilityElement(SOAPBinding.class, binding.getExtensibilityElements());
//            String transportURI = soapBinding.getTransportURI();
        String portStyleString = soapBinding.getStyle();
        return Style.getStyle(portStyleString);
    }
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 SOAPBinding) {
                                SOAPBinding soapB = (SOAPBinding)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 SOAPBinding) {
                                SOAPBinding soapB = (SOAPBinding)o;
                                if (soapB.getTransportURI().equals("http://schemas.xmlsoap.org/soap/http")) {
                                    epfo = e;
                                    break;
                                }
                            }
                        }
View Full Code Here

    public WSDLBasedServiceConfiguration(BindingInfo bi) {
        this.bi = bi;
    }

    public String getStyle() {
        SOAPBinding sb = bi.getExtensor(SOAPBinding.class);
        return (sb == null) ? null : sb.getStyle();
    }
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 SOAPBinding) {
                                SOAPBinding soapB = (SOAPBinding)o;
                                if (soapB.getTransportURI().equals("http://schemas.xmlsoap.org/soap/http")) {
                                    epfo = e;
                                    break;
                                }
                            }
                        }
View Full Code Here

    // Get the binding from the entry context
    Binding binding = (Binding) entryContext.getEntry().getEntryDetail();

    // Try to get the SOAP binding
    SOAPBinding soapBinding = WSDLValidatorImpl.getSoapBinding(binding);

    // Test the assertion
    // Check for Soap binding namespace
    if ((soapBinding == null)
      || (soapBinding.getTransportURI() == null)
      || !soapBinding.getTransportURI().equals(WSIConstants.NS_URI_SOAP_HTTP))
    {
      result = AssertionResult.RESULT_FAILED;
      this.validator.createFailureDetail(
        soapBinding == null
          ? "WSDL document does not contain SOAP binding element."
          : soapBinding.toString(),
        entryContext);
    }

    // Return assertion result
    return validator.createAssertionResult(testAssertion, result, failureDetail);
View Full Code Here

    // Get the port from the entry context
    //Port port = (Port) entryContext.getEntry().getEntryDetail();
    Binding binding = (Binding) entryContext.getEntry().getEntryDetail();

    // Try to get the SOAP binding
    SOAPBinding soapBinding = WSDLValidatorImpl.getSoapBinding(binding);

    // Test the assertion
    // Check that there is at least one SOAP Binding
    if (soapBinding != null)
    {
View Full Code Here

TOP

Related Classes of javax.wsdl.extensions.soap.SOAPBinding

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.