Examples of XSQLRequest


Examples of oracle.xml.xsql.XSQLRequest

    // Implementation methods
    //-------------------------------------------------------------------------
    protected boolean transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage out) throws MessagingException {
        XMLDocument document = createXSQLDocument(exchange, in);
        XSQLRequest request = createXSQLRequest(exchange, in, document);
        Document response = request.processToXML();
        out.setContent(new DOMSource(response));
        return true;
    }
View Full Code Here

Examples of oracle.xml.xsql.XSQLRequest

        out.setContent(new DOMSource(response));
        return true;
    }

    protected XSQLRequest createXSQLRequest(MessageExchange exchange, NormalizedMessage in, XMLDocument document) {
        return new XSQLRequest(connectionManagerFactory, document, baseURL);
    }
View Full Code Here

Examples of oracle.xml.xsql.XSQLRequest

        };

        DOMParser parser = new DOMParser();
        parser.parse(new StringReader("<xsql:query xmlns:xsql='urn:oracle-xsql' connection='demo' tag-case='lower' row-element='cheese' rowset-element='food'> select * from cheese </xsql:query>"));
        XMLDocument document = parser.getDocument();
        XSQLRequest request = new XSQLRequest(factory, document, new URL("http://foo.com"));
        Document response = request.processToXML();
        System.out.println("XML is:");
        System.out.println(transformer.toString(new DOMSource(response)));
    }
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.