Package oracle.xml.xsql

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


        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

        };

        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

Related Classes of oracle.xml.xsql.XSQLRequest

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.