Package org.apache.cxf.binding.soap.wsdl.extensions

Examples of org.apache.cxf.binding.soap.wsdl.extensions.SoapBinding


        boolean isSoap12 = bi.getSoapVersion() instanceof Soap12;
        Bus bs = getBus();
        WSDLManager m = bs.getExtension(WSDLManager.class);
        ExtensionRegistry extensionRegistry = m.getExtensionRegistry();

        SoapBinding soapBinding = SOAPBindingUtil.createSoapBinding(extensionRegistry, isSoap12);
        soapBinding.setStyle(bi.getStyle());
        soapBinding.setTransportURI(bi.getTransportURI());
        bi.addExtensor(soapBinding);

        for (BindingOperationInfo b : bi.getOperations()) {
            for (BindingFaultInfo faultInfo : b.getFaults()) {
                SoapFault soapFault = SOAPBindingUtil.createSoapFault(extensionRegistry, isSoap12);
View Full Code Here


    public BindingInfo createBindingInfo(ServiceInfo service, javax.wsdl.Binding binding, String ns) {
        SoapBindingInfo bi = new SoapBindingInfo(service, ns);
        // Copy all the extensors
        initializeBindingInfo(service, binding, bi);

        SoapBinding wSoapBinding
            = SOAPBindingUtil.getSoapBinding(bi.getExtensors(ExtensibilityElement.class));


        bi.setTransportURI(wSoapBinding.getTransportURI());
        bi.setStyle(wSoapBinding.getStyle());

        for (BindingOperationInfo boi : bi.getOperations()) {
            initializeBindingOperation(bi, boi);
        }
View Full Code Here

        boolean isSoap12 = bi.getSoapVersion() instanceof Soap12;
        Bus bs = getBus();
        WSDLManager m = bs.getExtension(WSDLManager.class);
        ExtensionRegistry extensionRegistry = m.getExtensionRegistry();

        SoapBinding soapBinding = SOAPBindingUtil.createSoapBinding(extensionRegistry, isSoap12);
        soapBinding.setStyle(bi.getStyle());
        soapBinding.setTransportURI(bi.getTransportURI());
        bi.addExtensor(soapBinding);

        for (BindingOperationInfo b : bi.getOperations()) {
            for (BindingFaultInfo faultInfo : b.getFaults()) {
                SoapFault soapFault = SOAPBindingUtil.createSoapFault(extensionRegistry, isSoap12);
View Full Code Here

    public BindingInfo createBindingInfo(ServiceInfo service, javax.wsdl.Binding binding, String ns) {
        SoapBindingInfo bi = new SoapBindingInfo(service, ns);
        // Copy all the extensors
        initializeBindingInfo(service, binding, bi);

        SoapBinding wSoapBinding
            = SOAPBindingUtil.getSoapBinding(bi.getExtensors(ExtensibilityElement.class));


        bi.setTransportURI(wSoapBinding.getTransportURI());
        bi.setStyle(wSoapBinding.getStyle());

        for (BindingOperationInfo boi : bi.getOperations()) {
            initializeBindingOperation(bi, boi);
        }
View Full Code Here

            if (binding == null) {
                fail("Element wsdl:binding Greeter_Binding Missed!");
            }
            boolean found = false;
            for (Object obj : binding.getExtensibilityElements()) {
                SoapBinding soapBinding = SOAPBindingUtil.getSoapBinding(obj);
                if (soapBinding != null
                    && soapBinding.getStyle().equalsIgnoreCase("document")) {
                    found = true;
                    break;
                }
            }
            if (!found) {
View Full Code Here

            if (binding == null) {
                fail("Element wsdl:binding Greeter_SOAPBinding_NewBinding Missed!");
            }
            boolean found = false;
            for (Object obj : binding.getExtensibilityElements()) {
                SoapBinding soapBinding = SOAPBindingUtil.getSoapBinding(obj);
                if (soapBinding != null && soapBinding.getStyle().equalsIgnoreCase("rpc")) {
                    found = true;
                    break;

                }
            }
View Full Code Here

                fail("Element wsdl:binding Greeter_SOAPBinding_NewBinding Missed!");
            }
            for (Object obj : binding.getExtensibilityElements()) {
                assertTrue(SOAPBindingUtil.isSOAPBinding(obj));
                assertTrue(obj instanceof SOAP12Binding);
                SoapBinding soapBinding = SOAPBindingUtil.getSoapBinding(obj);
                assertNotNull(soapBinding);
                assertTrue("document".equalsIgnoreCase(soapBinding.getStyle()));
                assertTrue(WSDLConstants.NS_SOAP_HTTP_TRANSPORT.
                           equalsIgnoreCase(soapBinding.getTransportURI()));
            }

            BindingOperation bo = binding.getBindingOperation("sayHi", null, null);
            if (bo == null) {
                fail("Element <wsdl:operation name=\"sayHi\"> Missed!");
View Full Code Here

                fail("Element wsdl:binding Greeter_SOAPBinding_NewBinding Missed!");
            }
            for (Object obj : binding.getExtensibilityElements()) {
                assertTrue(SOAPBindingUtil.isSOAPBinding(obj));
                assertTrue(obj instanceof SOAP12Binding);
                SoapBinding soapBinding = SOAPBindingUtil.getSoapBinding(obj);
                assertNotNull(soapBinding);
                assertTrue("document".equalsIgnoreCase(soapBinding.getStyle()));

            }

            BindingOperation bo = binding.getBindingOperation("sayHi", null, null);
            if (bo == null) {
View Full Code Here

                fail("Element wsdl:binding Greeter_SOAPBinding_NewBinding Missed!");
            }
            for (Object obj : binding.getExtensibilityElements()) {
                assertTrue(SOAPBindingUtil.isSOAPBinding(obj));
                assertTrue(obj instanceof SOAPBinding);
                SoapBinding soapBinding = SOAPBindingUtil.getSoapBinding(obj);
                assertNotNull(soapBinding);
                assertTrue("document".equalsIgnoreCase(soapBinding.getStyle()));
                assertTrue(WSDLConstants.NS_SOAP11_HTTP_TRANSPORT.
                           equalsIgnoreCase(soapBinding.getTransportURI()));
            }

            BindingOperation bo = binding.getBindingOperation("sayHi", null, null);
            if (bo == null) {
                fail("Element <wsdl:operation name=\"sayHi\"> Missed!");
View Full Code Here

                                                       binding.getName());
            throw new ToolException(msg);
        }

        if (isSoapBinding()) {
            SoapBinding spbd = SOAPBindingUtil.getProxy(SoapBinding.class, this.bindingObj);
            jport.setStyle(SOAPBindingUtil.getSoapStyle(spbd.getStyle()));
            jport.setTransURI(spbd.getTransportURI());
        }

        Collection<BindingOperationInfo> operations = binding.getOperations();
        for (BindingOperationInfo bop : operations) {
            processOperation(model, bop, binding);
View Full Code Here

TOP

Related Classes of org.apache.cxf.binding.soap.wsdl.extensions.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.