Examples of createReader()


Examples of org.apache.cxf.jaxb.JAXBDataBinding.createReader()

        JAXBDataBinding db = getDataBinding(GreetMe.class);
   
        reader = getTestReader("../resources/SetPropertyValidationFailureReq.xml");
        assertNotNull(reader);
       
        DataReaderImpl<XMLStreamReader> dr = (DataReaderImpl<XMLStreamReader>)db.createReader(XMLStreamReader.class);
        assertNotNull(dr);
       
        // Build message to set custom event handler
        org.apache.cxf.message.Message message = new org.apache.cxf.message.MessageImpl();
        message.put("jaxb-validation-event-handler", new MyCustomHandler());
View Full Code Here

Examples of org.apache.cxf.jaxb.JAXBDataBinding.createReader()

        JAXBDataBinding db = getDataBinding(GreetMe.class);
       
        reader = getTestReader("../resources/GreetMeDocLiteralReq.xml");
        assertNotNull(reader);
       
        DataReader<XMLStreamReader> dr = db.createReader(XMLStreamReader.class);
        assertNotNull(dr);
        Object val = dr.read(reader);
        assertNotNull(val);
        assertTrue(val instanceof GreetMe);
        assertEquals("TestSOAPInputPMessage", ((GreetMe)val).getRequestType());
View Full Code Here

Examples of org.apache.cxf.jaxb.JAXBDataBinding.createReader()

        JAXBDataBinding db = getDataBinding(GreetMeResponse.class);

        reader = getTestReader("../resources/GreetMeDocLiteralResp.xml");
        assertNotNull(reader);

        DataReader<XMLStreamReader> dr = db.createReader(XMLStreamReader.class);
        assertNotNull(dr);
       
        Object retValue = dr.read(reader);
       
        assertNotNull(retValue);
View Full Code Here

Examples of org.apache.cxf.jaxb.JAXBDataBinding.createReader()

        reader = getTestReader("../resources/greetMeRpcLitReq.xml");
        assertNotNull(reader);
       
        XMLStreamReader localReader = getTestFilteredReader(reader, tags);

        DataReader<XMLStreamReader> dr = db.createReader(XMLStreamReader.class);
        assertNotNull(dr);
        Object val = dr.read(new QName("http://apache.org/hello_world_rpclit", "in"),
                             localReader,
                             MyComplexStruct.class);
        assertNotNull(val);
View Full Code Here

Examples of org.apache.cxf.jaxb.JAXBDataBinding.createReader()

        JAXBDataBinding db = getDataBinding(TradePriceData.class);

        reader = getTestReader("../resources/sayHiDocLitBareReq.xml");
        assertNotNull(reader);
       
        DataReader<XMLStreamReader> dr = db.createReader(XMLStreamReader.class);
        assertNotNull(dr);
        QName elName = new QName("http://apache.org/hello_world_doc_lit_bare/types", "inout");
        MessagePartInfo part = new MessagePartInfo(elName, null);
        part.setElement(true);
        part.setElementQName(elName);
View Full Code Here

Examples of org.apache.cxf.jaxb.JAXBDataBinding.createReader()

        JAXBDataBinding db = getDataBinding(GreetMe.class);
       
        reader = getTestReader("../resources/GreetMeDocLiteralReq.xml");
        assertNotNull(reader);
       
        DataReader<XMLStreamReader> dr = db.createReader(XMLStreamReader.class);
        assertNotNull(dr);
        Object val = dr.read(reader);
        assertNotNull(val);
        assertTrue(val instanceof GreetMe);
        assertEquals("TestSOAPInputPMessage", ((GreetMe)val).getRequestType());
View Full Code Here

Examples of org.apache.cxf.jaxb.JAXBDataBinding.createReader()

        JAXBDataBinding db = getDataBinding(GreetMeResponse.class);

        reader = getTestReader("../resources/GreetMeDocLiteralResp.xml");
        assertNotNull(reader);

        DataReader<XMLStreamReader> dr = db.createReader(XMLStreamReader.class);
        assertNotNull(dr);
       
        Object retValue = dr.read(reader);
       
        assertNotNull(retValue);
View Full Code Here

Examples of org.apache.cxf.jaxb.JAXBDataBinding.createReader()

        reader = getTestReader("../resources/greetMeRpcLitReq.xml");
        assertNotNull(reader);
       
        XMLStreamReader localReader = getTestFilteredReader(reader, tags);

        DataReader<XMLStreamReader> dr = db.createReader(XMLStreamReader.class);
        assertNotNull(dr);
        Object val = dr.read(new QName("http://apache.org/hello_world_rpclit", "in"),
                             localReader,
                             MyComplexStruct.class);
        assertNotNull(val);
View Full Code Here

Examples of org.apache.cxf.jaxb.JAXBDataReaderFactory.createReader()

        JAXBDataReaderFactory rf = getTestReaderFactory(GreetMe.class);

        reader = getTestReader("../resources/GreetMeDocLiteralReq.xml");
        assertNotNull(reader);
       
        DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
        assertNotNull(dr);
        Object val = dr.read(reader);
        assertNotNull(val);
        assertTrue(val instanceof GreetMe);
        assertEquals("TestSOAPInputPMessage", ((GreetMe)val).getRequestType());
View Full Code Here

Examples of org.apache.flex.compiler.filespecs.FileSpecification.createReader()

        final FileSpecification fileSpec = new FileSpecification(args[0]);
        final MXMLTokenizer tokenizer = new MXMLTokenizer(fileSpec);
        List<MXMLToken> tokens = null;
        try
        {
            tokens = tokenizer.parseTokens(fileSpec.createReader());

            // Build tags and attributes from the tokens.
            final MXMLData mxmlData = new MXMLData(tokens, tokenizer.getPrefixMap(), fileSpec);

            mxmlData.dumpUnits();
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.