Package org.apache.cxf.binding.corba.wsdl

Examples of org.apache.cxf.binding.corba.wsdl.OperationType


        assertEquals(bindingOp.getBindingOutput().getName(), "_get_string_attributeResponse");
        Iterator bOp = bindingOp.getExtensibilityElements().iterator();
        while (bOp.hasNext()) {    
            ExtensibilityElement extElement = (ExtensibilityElement)bOp.next();
            if (extElement.getElementType().getLocalPart().equals("operation")) {
                OperationType corbaOpType = (OperationType)extElement;                
                assertEquals(corbaOpType.getName(), "_get_string_attribute");               
                assertEquals(corbaOpType.getReturn().getName(), "return");
                assertEquals(corbaOpType.getReturn().getIdltype(), CorbaConstants.NT_CORBA_STRING);
            }
        }
    }
View Full Code Here


        assertEquals(bindingOp.getBindingOutput().getName(), "_get_test_idResponse");
        Iterator bOp = bindingOp.getExtensibilityElements().iterator();
        while (bOp.hasNext()) {    
            ExtensibilityElement extElement = (ExtensibilityElement)bOp.next();
            if (extElement.getElementType().getLocalPart().equals("operation")) {
                OperationType corbaOpType = (OperationType)extElement;                
                assertEquals(corbaOpType.getName(), "_get_test_id");               
                assertEquals(corbaOpType.getReturn().getName(), "return");
                assertEquals(corbaOpType.getReturn().getIdltype(), CorbaConstants.NT_CORBA_FLOAT);
            }
        }
    }
View Full Code Here

        assertEquals(bindingOp.getBindingOutput().getName(), "_set_test_idResponse");
        Iterator bOp = bindingOp.getExtensibilityElements().iterator();
        while (bOp.hasNext()) {    
            ExtensibilityElement extElement = (ExtensibilityElement)bOp.next();
            if (extElement.getElementType().getLocalPart().equals("operation")) {
                OperationType corbaOpType = (OperationType)extElement;                
                assertEquals(corbaOpType.getName(), "_set_test_id");    
                assertEquals(1, corbaOpType.getParam().size());               
                assertEquals(corbaOpType.getParam().get(0).getName(), "_arg");
                assertEquals(corbaOpType.getParam().get(0).getMode().value(), "in");
                assertEquals(corbaOpType.getParam().get(0).getIdltype(), CorbaConstants.NT_CORBA_FLOAT);
            }
        }
    }
View Full Code Here

        assertEquals(bindingOp.getBindingOutput().getName(), "test_voidResponse");
        Iterator bOp = bindingOp.getExtensibilityElements().iterator();
        while (bOp.hasNext()) {    
            ExtensibilityElement extElement = (ExtensibilityElement)bOp.next();
            if (extElement.getElementType().getLocalPart().equals("operation")) {
                OperationType corbaOpType = (OperationType)extElement;                
                assertEquals(corbaOpType.getName(), "test_void");    
                assertEquals(0, corbaOpType.getParam().size());                               
            }
        }
    }           
View Full Code Here

        assertEquals(bindingOp.getBindingOutput().getName(), name + "Response");
        Iterator bOp = bindingOp.getExtensibilityElements().iterator();
        while (bOp.hasNext()) {    
            ExtensibilityElement extElement = (ExtensibilityElement)bOp.next();
            if (extElement.getElementType().getLocalPart().equals("operation")) {
                OperationType corbaOpType = (OperationType)extElement;                
                assertEquals(corbaOpType.getName(), name);    
                assertEquals(3, corbaOpType.getParam().size());               
                assertEquals(corbaOpType.getParam().get(0).getName(), "x");
                assertEquals(corbaOpType.getParam().get(0).getMode().value(), "in");
                assertEquals(corbaOpType.getParam().get(0).getIdltype(),
                             corbaType);                              
                assertEquals(corbaOpType.getReturn().getName(), "return");
                assertEquals(corbaOpType.getReturn().getIdltype(), corbaType);

            }
        }
    }
View Full Code Here

                Iterator bOp = bindingOperation.getExtensibilityElements().iterator();
                while (bOp.hasNext()) {
                    ExtensibilityElement extElement = (ExtensibilityElement)bOp.next();
                    if (extElement.getElementType().getLocalPart().equals("operation")) {
                        OperationType corbaOpType = (OperationType)extElement;
                        assertEquals(corbaOpType.getName(), "op_a");
                        assertEquals(1, corbaOpType.getParam().size());
                        assertNotNull(corbaOpType.getReturn());
                        ParamType paramtype = corbaOpType.getParam().get(0);
                        assertEquals(paramtype.getName(), "part1");
                        QName idltype = new QName("http://schemas.apache.org/idl/anon.idl/corba/typemap/",
                                                  "ArrayType", "ns1");
                        assertEquals(paramtype.getIdltype(), idltype);
                        assertEquals(paramtype.getMode().toString(), "IN");
View Full Code Here

    }

    public void close(Message message) throws IOException {
        if (message.get(CorbaConstants.CORBA_ENDPOINT_OBJECT) != null) {
            BindingOperationInfo boi = message.getExchange().get(BindingOperationInfo.class);
            OperationType opType = boi.getExtensor(OperationType.class);
            try {
                buildRequest((CorbaMessage)message, opType);           
                message.getContent(OutputStream.class).close();
            } catch (Exception ex) {
                LOG.log(Level.SEVERE, "Could not build the corba request");
View Full Code Here

        BindingInfo bInfo = destination.getBindingInfo();             
        InterfaceInfo info = bInfo.getInterface();
        String opName = exchange.get(String.class);
        Iterator i = bInfo.getOperations().iterator();
        OperationType opType = null;
        BindingOperationInfo bopInfo = null;
        QName opQName = null;
        while (i.hasNext()) {
            bopInfo = (BindingOperationInfo)i.next();
            if (bopInfo.getName().getLocalPart().equals(opName)) {
View Full Code Here

    }

    public void close(Message message) throws IOException {
        if (message.get(CorbaConstants.CORBA_ENDPOINT_OBJECT) != null) {
            BindingOperationInfo boi = message.getExchange().get(BindingOperationInfo.class);
            OperationType opType = boi.getExtensor(OperationType.class);
            try {
                if (message instanceof CorbaMessage) {
                    buildRequest((CorbaMessage)message, opType);           
                }
                message.getContent(OutputStream.class).close();
View Full Code Here

        String opName = message.getExchange().get(String.class);
               
        Iterator<BindingOperationInfo> iter = bInfo.getOperations().iterator();

        BindingOperationInfo bopInfo = null;
        OperationType opType = null;          
        while (iter.hasNext()) {
            bopInfo = iter.next();
            if (bopInfo.getName().getLocalPart().equals(opName)) {
                opType = bopInfo.getExtensor(OperationType.class);
                break;
View Full Code Here

TOP

Related Classes of org.apache.cxf.binding.corba.wsdl.OperationType

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.