Package org.apache.cxf.tools.common.extensions.soap

Examples of org.apache.cxf.tools.common.extensions.soap.SoapOperation


            if (bo == null) {
                fail("Element <wsdl:operation name=\"sendReceiveData\"> Missed!");
            }
            found = false;
            for (Object obj : bo.getExtensibilityElements()) {
                SoapOperation soapOperation = SOAPBindingUtil.getSoapOperation(obj);
                if (soapOperation != null && soapOperation.getStyle().equalsIgnoreCase("rpc")) {
                    found = true;
                    break;
                }
            }
            if (!found) {
View Full Code Here


                fail("Element <wsdl:operation name=\"sayHi\"> Missed!");
            }
            for (Object obj : bo.getExtensibilityElements()) {
                assertTrue(SOAPBindingUtil.isSOAPOperation(obj));
                assertTrue(obj instanceof SOAP12Operation);
                SoapOperation soapOperation = SOAPBindingUtil.getSoapOperation(obj);
                assertNotNull(soapOperation);
                assertTrue("document".equalsIgnoreCase(soapOperation.getStyle()));
            }
            BindingInput bi = bo.getBindingInput();
            for (Object obj : bi.getExtensibilityElements()) {
                assertTrue(SOAPBindingUtil.isSOAPBody(obj));
                assertTrue(obj instanceof SOAP12Body);
View Full Code Here

                fail("Element <wsdl:operation name=\"sayHi\"> Missed!");
            }
            for (Object obj : bo.getExtensibilityElements()) {
                assertTrue(SOAPBindingUtil.isSOAPOperation(obj));
                assertTrue(obj instanceof SOAP12Operation);
                SoapOperation soapOperation = SOAPBindingUtil.getSoapOperation(obj);
                assertNotNull(soapOperation);
                assertTrue("document".equalsIgnoreCase(soapOperation.getStyle()));
            }
            BindingInput bi = bo.getBindingInput();
            for (Object obj : bi.getExtensibilityElements()) {
                assertTrue(SOAPBindingUtil.isSOAPBody(obj));
                assertTrue(obj instanceof SOAP12Body);
View Full Code Here

                fail("Element <wsdl:operation name=\"sayHi\"> Missed!");
            }
            for (Object obj : bo.getExtensibilityElements()) {
                assertTrue(SOAPBindingUtil.isSOAPOperation(obj));
                assertTrue(obj instanceof SOAPOperation);
                SoapOperation soapOperation = SOAPBindingUtil.getSoapOperation(obj);
                assertNotNull(soapOperation);
                assertTrue("document".equalsIgnoreCase(soapOperation.getStyle()));
            }
            BindingInput bi = bo.getBindingInput();
            for (Object obj : bi.getExtensibilityElements()) {
                assertTrue(SOAPBindingUtil.isSOAPBody(obj));
                assertTrue(obj instanceof SOAPBody);
View Full Code Here

        }
        for (Object bobj : binding.getBindingOperations()) {
            BindingOperation bop = (BindingOperation)bobj;
            for (Object obj : bop.getExtensibilityElements()) {
                if (isSOAPOperation(obj)) {
                    SoapOperation soapOperation = getSoapOperation(obj);
                    style = soapOperation.getStyle();
                    if (style == null) {
                        style = "";
                    }

                    if ("".equals(bindingStyle) && "".equals(previousOpStyle) || "".equals(bindingStyle)
View Full Code Here

    private Map getSoapOperationProp(BindingOperationInfo bop) {
        Map<String, Object> soapOPProp = new HashMap<String, Object>();
        if (bop.getExtensor(ExtensibilityElement.class) != null) {
            for (ExtensibilityElement ext : bop.getExtensors(ExtensibilityElement.class)) {
                if (SOAPBindingUtil.isSOAPOperation(ext)) {
                    SoapOperation soapOP = SOAPBindingUtil.getSoapOperation(ext);
                    soapOPProp.put(this.soapOPAction, soapOP.getSoapActionURI());
                    soapOPProp.put(this.soapOPStyle, soapOP.getStyle());
                }
            }
        } else {
            for (ExtensibilityElement ext :  bop.getBinding().getExtensors(ExtensibilityElement.class)) {
                if (SOAPBindingUtil.isSOAPOperation(ext)) {
                    SoapOperation soapOP = SOAPBindingUtil.getSoapOperation(ext);
                    soapOPProp.put(this.soapOPAction, soapOP.getSoapActionURI());
                    soapOPProp.put(this.soapOPStyle, soapOP.getStyle());
                }
            }


        }
View Full Code Here

    private Map getSoapOperationProp(BindingOperationInfo bop) {
        Map<String, Object> soapOPProp = new HashMap<String, Object>();
        if (bop.getExtensor(ExtensibilityElement.class) != null) {
            for (ExtensibilityElement ext : bop.getExtensors(ExtensibilityElement.class)) {
                if (SOAPBindingUtil.isSOAPOperation(ext)) {
                    SoapOperation soapOP = SOAPBindingUtil.getSoapOperation(ext);
                    soapOPProp.put(this.soapOPAction, soapOP.getSoapActionURI());
                    soapOPProp.put(this.soapOPStyle, soapOP.getStyle());
                }
            }
        } else {
            for (ExtensibilityElement ext :  bop.getBinding().getExtensors(ExtensibilityElement.class)) {
                if (SOAPBindingUtil.isSOAPOperation(ext)) {
                    SoapOperation soapOP = SOAPBindingUtil.getSoapOperation(ext);
                    soapOPProp.put(this.soapOPAction, soapOP.getSoapActionURI());
                    soapOPProp.put(this.soapOPStyle, soapOP.getStyle());
                }
            }


        }
View Full Code Here

            }
            it = bo.getExtensibilityElements().iterator();
            found = false;
            while (it.hasNext()) {
                Object obj = it.next();
                SoapOperation soapOperation = SOAPBindingUtil.getSoapOperation(obj);
                if (soapOperation != null
                    && soapOperation.getStyle().equalsIgnoreCase("document")) {
                    found = true;
                    break;
                }
            }
            if (!found) {
View Full Code Here

            }
            it = bo.getExtensibilityElements().iterator();
            found = false;
            while (it.hasNext()) {
                Object obj = it.next();
                SoapOperation soapOperation = SOAPBindingUtil.getSoapOperation(obj);
                if (soapOperation != null && soapOperation.getStyle().equalsIgnoreCase("rpc")) {
                    found = true;
                    break;
                }
            }
            if (!found) {
View Full Code Here

            while (it.hasNext()) {
                Object obj = it.next();
                assertTrue(SOAPBindingUtil.isSOAPOperation(obj));
                assertTrue(obj instanceof SOAP12Operation);
                SoapOperation soapOperation = SOAPBindingUtil.getSoapOperation(obj);
                assertNotNull(soapOperation);
                assertTrue("document".equalsIgnoreCase(soapOperation.getStyle()));
            }
            BindingInput bi = bo.getBindingInput();
            it = bi.getExtensibilityElements().iterator();
            while (it.hasNext()) {
                Object obj = it.next();
View Full Code Here

TOP

Related Classes of org.apache.cxf.tools.common.extensions.soap.SoapOperation

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.