I tried your own solution (the one you gave in a previous topic), which executes a query on a file dcument:
my parameters:
- filename:
- file location: F:/Xian/Diplome/Xqueries/XML/
- quip.exe location: F:/Software AG/Quip/quip.exe
and this is my code:
import java.util.;
import com.softwareag.xtools.quip.xqueryAPI.;
public class x {
public static void main(String args){
Properties obj = new Properties();
StringBuffer stringbuffer1 = new StringBuffer();
try {
stringbuffer1.append( “file:XianDBfile1.xml” );
obj.put(“home”,“F:/Xian/Diplome/Xqueries/XML/” );
obj.put(“quipcmd”,“F:/Software AG/Quip/quip.exe” );
String query = “let $x := document(”+obj.getProperty(“home”)+“)/News/Subject return $x”;
Connection connect = DriverManager.getConnection( stringbuffer1.toString(), (Properties)obj );
QueryResult result = connect.executeQuery(query);
System.out.println(result.getRawString());
} catch (XQueryException XQEx) {
System.out.println("XQueryException: " + XQEx.getMessage());
}
}
}
and always the same error message:
XQueryException: The executor was not found!
I checked every single letter of the quip.exe location (in fact it is a copy-paste…)
I also have another question,
what does the “file:” in stringbuffer1.append( “file:XianDBfile1.xml” ); ??
ehat shoul we put if we would like to give a database url ??
#API-Management#webMethods#Tamino