webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Quip Api problems

    Posted Mon December 31, 2001 04:12 AM

    I’m trying everything to make Quip Api works… But in my all tries i get the follow message:

    XQueryException: null

    What can i do?

    My code is the follow above (servlet running in a non Quip path):

    Object obj = null;
    obj = new Properties();
    StringBuffer stringbuffer1 = null;
    stringbuffer1 = new StringBuffer();
    StringBuffer stringbuffer2 = null;
    stringbuffer2 = new StringBuffer();

    try {
    stringbuffer1.append( “file://” );
    stringbuffer1.append( “.” );
    ((Hashtable) obj).put( “version”, “syntax01” );
    ((Hashtable) obj).put( “home”, “C:\” );
    ((Hashtable) obj).put( “quipcmd”, “C:\Arquiv~1\Quip\Quip.exe” );
    Connection Conexao = DriverManager.getConnection( stringbuffer1.toString(), (Properties) obj );
    out.println(“FOR $t IN document("agenda.xml")//clientes " +
    “WHERE contains($t/nome/text(),"” + req.getParameter(“nome”) +”") "+
    “RETURN /e_mail/text()”);

    QueryResult Resultado = Conexao.executeQuery(“FOR $t IN document("agenda.xml")//clientes " +
    “WHERE contains($t/nome/text(),"” + req.getParameter(“nome”) +”") "+
    “RETURN $t/e_mail/text()”);
    out.println(Resultado);
    }
    catch (XQueryException XQEx) {
    out.println("XQueryException: " + XQEx.getMessage());
    }
    }


    #API-Management
    #Tamino
    #webMethods