Examples of JAXBDataBindingCallback


Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

        return OPERATION_NAME;
    }
       
    public static DataBindingCallback createDataBindingCallback() {
        Method method = getMethod();
        return new JAXBDataBindingCallback(method, DataBindingCallback.Mode.PARTS, null);
    }
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

        Port port = def.getService(new QName("http://objectweb.org/hello_world_rpclit",
                                             "SOAPServiceRPCLit1")).getPort("SoapPortRPCLit1");
        WSDLMetaDataCache wsdl = new WSDLMetaDataCache(def, port);
       
        for (Method method : cls.getDeclaredMethods()) {
            DataBindingCallback c1 = new JAXBDataBindingCallback(method, Mode.PARTS, ctx);
            WSDLOperationInfo info = wsdl.getOperationInfo(c1.getOperationName());
            assertNotNull("Could not find operation info in wsdl: " + c1.getOperationName(), info);
            DataBindingCallback c2 = new WSDLOperationDataBindingCallback(info);
            compareDataBindingCallbacks(c1, c2);
        }
    }
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

        Port port = def.getService(new QName("http://objectweb.org/hello_world_doc_lit_bare",
                                             "SOAPService")).getPort("SoapPort");
        WSDLMetaDataCache wsdl = new WSDLMetaDataCache(def, port);
       
        for (Method method : cls.getDeclaredMethods()) {
            DataBindingCallback c1 = new JAXBDataBindingCallback(method, Mode.PARTS, ctx);
            WSDLOperationInfo info = wsdl.getOperationInfo(c1.getOperationName());
            assertNotNull("Could not find operation info in wsdl: " + c1.getOperationName(), info);
            DataBindingCallback c2 = new WSDLOperationDataBindingCallback(info);
            compareDataBindingCallbacks(c1, c2);
        }
    }
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

       
        String arg0 = new String("TestXMLInputMessage");
        objContext.setMessageObjects(arg0);
       
        clientBinding.invokeOneWay(objContext,
                                   new JAXBDataBindingCallback(method,
                                                               DataBindingCallback.Mode.PARTS,
                                                               null));
    }
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

        TestInputStreamContext inCtx = new TestInputStreamContext(bArray);
        assertNotNull(binding.createBindingMessageContext(inCtx));
    }
   
    public void testOperationName() throws Exception {
        JAXBDataBindingCallback callback =  new JAXBDataBindingCallback(objContext.getMethod(),
                                                                        DataBindingCallback.Mode.PARTS,
                                                                        null);
        String operationName = callback.getOperationName();
        assertNotNull(operationName);
        assertEquals("greetMe", operationName);
    }
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

        String arg0 = new String("TestXMLInputMessage");
        objContext.setMessageObjects(arg0);

        binding.marshal(objContext,
                        xmlContext,
                        new JAXBDataBindingCallback(objContext.getMethod(),
                                                    DataBindingCallback.Mode.PARTS,
                                                    null));
        XMLMessage msg = xmlContext.getMessage();
        assertNotNull(msg);
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

    public void testMarshalWrapNoPart() throws Exception {
        xmlContext.put(ObjectMessageContext.MESSAGE_INPUT, false);
        objContext.setMethod(ClassUtils.getMethod(Greeter.class, "sayHi"));
        binding.marshal(objContext,
                        xmlContext,
                        new JAXBDataBindingCallback(objContext.getMethod(),
                                                    DataBindingCallback.Mode.PARTS,
                                                    null));
        XMLMessage msg = xmlContext.getMessage();
        assertNotNull(msg);
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

        String arg0 = "TestXMLOutputMessage";
        objContext.setReturn(arg0);
       
        binding.marshal(objContext,
                        xmlContext,
                        new JAXBDataBindingCallback(objContext.getMethod(),
                                                    DataBindingCallback.Mode.PARTS,
                                                    null));
        XMLMessage msg = xmlContext.getMessage();
        assertNotNull(msg);
        assertTrue(msg.getRoot().hasChildNodes());
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

       
        //GreetMe method has a IN parameter
        objContext.setMessageObjects(new Object[1]);
        binding.unmarshal(xmlContext,
                          objContext,
                          new JAXBDataBindingCallback(objContext.getMethod(),
                                                      DataBindingCallback.Mode.PARTS,
                                                      null));
       
        Object[] params = objContext.getMessageObjects();
        assertNotNull(params);
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.JAXBDataBindingCallback

        XMLMessage xmlMessage = binding.getMessageFactory().createMessage(in);
        xmlContext.setMessage(xmlMessage);

        binding.unmarshal(xmlContext,
                          objContext,
                          new JAXBDataBindingCallback(objContext.getMethod(),
                                                      DataBindingCallback.Mode.PARTS,
                                                      null));
       
        assertNull(objContext.getMessageObjects());
        assertNotNull(objContext.getReturn());
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.