Package org.exist.soap

Examples of org.exist.soap.QueryService


* Execute: bin\run.bat org.exist.examples.soap.GetDocument
*/
public class GetDocument {

    public static void main( String[] args ) throws Exception {
        QueryService service = new QueryServiceLocator();
        Query query = service.getQuery();
    String session = query.connect("guest", "guest");
       
    byte[] data = query.getResourceData(session,
        XmldbURI.ROOT_COLLECTION + "/shakespeare/plays/hamlet.xml",
      true, false, false);
View Full Code Here


    "</xu:modifications>";
   
    public static void main( String[] args ) throws Exception {
        AdminService adminService = new AdminServiceLocator();
        Admin admin = adminService.getAdmin();
        QueryService queryService = new QueryServiceLocator();
        Query query = queryService.getQuery();
       
    String session = admin.connect("guest", "guest");
    admin.store(session, document.getBytes(UTF_8), "UTF-8", XmldbURI.ROOT_COLLECTION + "/test/notes.xml", true);
    admin.xupdateResource(session, XmldbURI.ROOT_COLLECTION + "/test/notes.xml", xupdate);
   
View Full Code Here

TOP

Related Classes of org.exist.soap.QueryService

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.