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
Expand all | Collapse all

Quip sample code

  • 1.  Quip sample code

    Posted Mon December 31, 2001 01:30 AM

    Please i need a sample code of Java Api for Quip using the files in a local filesystem…

    Thanx for any answer…


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: Quip sample code

    Posted Wed January 02, 2002 03:07 PM

    ple

    [This message was edited by Sven Eric on 02 Jan 2002 at 14:48.]


    #API-Management
    #webMethods
    #Tamino


  • 3.  RE: Quip sample code

    Posted Wed January 02, 2002 03:16 PM
    quote:
    Originally posted by Sven Eric:
    please find below a simple example of how to use
    the Java Api of QuiP.

    I hope this will help you with your problems.

    Sven Eric

    import java.util.*;
    import com.softwareag.xtools.quip.xqueryAPI.*;

    public class ApiTest {
    public static void main(String [] args){
    Properties obj = new Properties();
    StringBuffer stringbuffer1 = new StringBuffer();


    try {
    stringbuffer1.append( "file://." );

    obj.put("home","C:/temp/presentation/" );
    obj.put("quipcmd","C:/temp/presentation/quip.exe" );

    Connection Conexao
    = DriverManager.getConnection( stringbuffer1.toString(), (Properties)obj );
    QueryResult Resultado = Conexao.executeQuery((String)args[0]);
    System.out.println(Resultado.getRawString());
    }
    catch (XQueryException XQEx) {
    System.out.println("XQueryException: " + XQEx.getMessage());
    }
    }
    }



    #API-Management
    #Tamino
    #webMethods