Package org.apache.cxf.service.model

Examples of org.apache.cxf.service.model.InterfaceInfo.addOperation()


    private BindingOperationInfo createBindingOperation() {
        ServiceInfo s = new ServiceInfo();
        InterfaceInfo ii = s.createInterface(new QName("FooInterface"));
        s.setInterface(ii);
        ii.addOperation(new QName("fooOp"));
       
        BindingInfo b = new BindingInfo(s, "foo");
        return b.buildOperation(new QName("fooOp"), null, null);
    }
View Full Code Here


                                                           String opresp,
                                                           Method method) {
        ServiceInfo si = new ServiceInfo();
        InterfaceInfo iinf = new InterfaceInfo(si,
                                               new QName(nsuri, method.getDeclaringClass().getSimpleName()));
        OperationInfo opInfo = iinf.addOperation(new QName(nsuri, method.getName()));
        opInfo.setProperty(Method.class.getName(), method);
        opInfo.setInput(opreq, opInfo.createMessage(new QName(nsuri, opreq), Type.INPUT));
        opInfo.setOutput(opresp, opInfo.createMessage(new QName(nsuri, opresp), Type.INPUT));
       
        BindingOperationInfo bindingOpInfo = new BindingOperationInfo(null, opInfo);
View Full Code Here

        QName op = new QName("E", "F");
        QName intf = new QName("G", "H");
        BindingInfo sbi = control.createMock(BindingInfo.class);
        ServiceInfo ssi = new ServiceInfo();
        InterfaceInfo sii = new InterfaceInfo(ssi, intf);
        sii.addOperation(op);
        OperationInfo soi = sii.getOperation(op);
        ServiceInfo rsi = new ServiceInfo();
        InterfaceInfo rii = new InterfaceInfo(rsi, intf);
        rii.addOperation(op);
        OperationInfo roi = rii.getOperation(op);
View Full Code Here

        InterfaceInfo sii = new InterfaceInfo(ssi, intf);
        sii.addOperation(op);
        OperationInfo soi = sii.getOperation(op);
        ServiceInfo rsi = new ServiceInfo();
        InterfaceInfo rii = new InterfaceInfo(rsi, intf);
        rii.addOperation(op);
        OperationInfo roi = rii.getOperation(op);
        BindingOperationInfo sboi = control.createMock(BindingOperationInfo.class);
        BindingOperationInfo rboi = control.createMock(BindingOperationInfo.class);
       
        ex.put(BindingOperationInfo.class, sboi);
View Full Code Here

        QName intf = new QName("G", "H");
        QName inmi = new QName("M", "in");
        QName outmi = new QName("M", "out");
        ServiceInfo ssi = new ServiceInfo();
        InterfaceInfo sii = new InterfaceInfo(ssi, intf);
        sii.addOperation(op);
        OperationInfo soi = sii.getOperation(op);
        MessageInfo mii = new MessageInfo(soi, MessageInfo.Type.INPUT, inmi);
        MessageInfo mio = new MessageInfo(soi, MessageInfo.Type.OUTPUT, outmi);
        soi.setInput("in", mii);
        soi.setOutput("out", mio);
View Full Code Here

        soi.setInput("in", mii);
        soi.setOutput("out", mio);
       
        ServiceInfo rsi = new ServiceInfo();
        InterfaceInfo rii = new InterfaceInfo(rsi, intf);
        rii.addOperation(op);
        OperationInfo roi = rii.getOperation(op);
        roi.setInput("in", mii);
        roi.setOutput("out", mio);
       
        EasyMock.expect(sep.getService()).andReturn(ses);
View Full Code Here

        QName intf = new QName("G", "H");
        QName inmi = new QName("M", "in");
        QName outmi = new QName("M", "out");
        ServiceInfo ssi = new ServiceInfo();
        InterfaceInfo sii = new InterfaceInfo(ssi, intf);
        sii.addOperation(op);
        OperationInfo soi = sii.getOperation(op);
        MessageInfo mii = new MessageInfo(soi, MessageInfo.Type.INPUT, inmi);
        MessagePartInfo mpi = mii.addMessagePart("parameters");
        mpi.setTypeClass(Source.class);
        MessageInfo mio = new MessageInfo(soi, MessageInfo.Type.OUTPUT, outmi);
View Full Code Here

        soi.setInput("in", mii);
        soi.setOutput("out", mio);
       
        ServiceInfo rsi = new ServiceInfo();
        InterfaceInfo rii = new InterfaceInfo(rsi, intf);
        rii.addOperation(op);
        OperationInfo roi = rii.getOperation(op);
        mii = new MessageInfo(roi, MessageInfo.Type.INPUT, inmi);
        mpi = mii.addMessagePart("parameters");
        mpi.setTypeClass(Object.class);
        mio = new MessageInfo(roi, MessageInfo.Type.OUTPUT, outmi);
View Full Code Here

    private BindingOperationInfo createBindingOperation() {
        ServiceInfo s = new ServiceInfo();
        InterfaceInfo ii = s.createInterface(new QName("FooInterface"));
        s.setInterface(ii);
        ii.addOperation(new QName("fooOp"));
       
        BindingInfo b = new BindingInfo(s, "foo");
        return b.buildOperation(new QName("fooOp"), null, null);
    }
View Full Code Here

            InterfaceInfo inf = new InterfaceInfo(si, qname);
            si.setInterface(inf);
            for (OperationResourceInfo ori : cri.getMethodDispatcher().getOperationResourceInfos()) {
                Method m = ori.getMethodToInvoke();
                QName oname = new QName(qname.getNamespaceURI(), m.getName());
                OperationInfo oi = inf.addOperation(oname);
                createMessagePartInfo(oi, m.getReturnType(), qname, m, false);
                for (Parameter pm : ori.getParameters()) {
                   
                    if (pm.getType() == ParameterType.REQUEST_BODY) {
                        createMessagePartInfo(oi,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.