Package org.objectweb.celtix.bindings

Examples of org.objectweb.celtix.bindings.ServerDataBindingCallback


            }
            for (Method meth : cls.getMethods()) {
                WebMethod wm = meth.getAnnotation(WebMethod.class);
                if (wm != null) {
                    QName op = new QName("", wm.operationName());
                    ServerDataBindingCallback cb = getDataBindingCallback(op, mode);
                    callbackMap.put(op, cb);
                }
            }
            for (Class<?> cls2 : cls.getInterfaces()) {
                addMethods(cls2);
View Full Code Here


                        qn = new QName(body.getNamespaceURI(), op.getName());
                    }
                }
            }
           
            ServerDataBindingCallback cb = getDataBindingCallback(qn, null,
                                                                  DataBindingCallback.Mode.PARTS);
            callbackMap.put(qn, cb);
            if (!"".equals(cb.getRequestWrapperQName().getLocalPart())) {
                callbackMap.put(cb.getRequestWrapperQName(), cb);
            }
        }
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    public ServerDataBindingCallback getDataBindingCallback(QName operationName,
                                                            ObjectMessageContext objContext,
                                                            DataBindingCallback.Mode mode) {
        if (mode == DataBindingCallback.Mode.PARTS) {
            ServerDataBindingCallback cb = callbackMap.get(operationName);
            if (null == cb) {
                cb = new JAXBDataBindingCallback(getMethod(operationName),
                                                 DataBindingCallback.Mode.PARTS,
                                                 context,
                                                 schema,
View Full Code Here

                        qn = new QName(body.getNamespaceURI(), op.getName());
                    }
                }
            }
           
            ServerDataBindingCallback cb = getDataBindingCallback(qn, null,
                                                                  DataBindingCallback.Mode.PARTS);
            opMap.put(qn, cb);
            if (!"".equals(cb.getRequestWrapperQName().getLocalPart())) {
                opMap.put(cb.getRequestWrapperQName(), cb);
            }
        }       
    }
View Full Code Here

        return list;
    }

    public void doCeltixInvocation(DataBindingCallback callback, ObjectMessageContext objectCtx) {
        try {
            ServerDataBindingCallback method = (ServerDataBindingCallback) callback;
            new WebServiceContextImpl(objectCtx);
            method.invoke(objectCtx);
        } catch (WebServiceException ex) {
            Throwable cause = ex.getCause();
            if (cause != null) {
                objectCtx.setException(cause);
            } else {
View Full Code Here

        CeltixService celtixService = createCeltixService();

        QName operationName = new QName("greetMe");
        ObjectMessageContextImpl ctx = new ObjectMessageContextImpl();
        ctx.setMessageObjects(new String[]{"Celtix"});
        ServerDataBindingCallback callback1 = celtixService.getDataBindingCallback(operationName, ctx, PARTS);
        assertNotNull(callback1);

        callback1.invoke(ctx);
        Object rtn = (String) ctx.getReturn();
        assertEquals("Hello Celtix", rtn);

    }
View Full Code Here

                        qn = new QName(body.getNamespaceURI(), op.getName());
                    }
                }
            }

            ServerDataBindingCallback cb = getDataBindingCallback(qn, null, DataBindingCallback.Mode.PARTS);
            opMap.put(qn, cb);
            if (!"".equals(cb.getRequestWrapperQName().getLocalPart())) {
                opMap.put(cb.getRequestWrapperQName(), cb);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.bindings.ServerDataBindingCallback

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.