Hallo zusammen,
habe folgenden Client geschrieben:
import java.util.Vector;
import org.apache.xmlrpc.XmlRpcClient;
public class XMLRPCTestClient {
public static void main (String args[]) {
try {
String MethodName = "printVinstance";
XmlRpcClient xmlrpc = new XmlRpcClient
("http://localhost:8080/axis2/services/ReadMetaData?wsdl");
Vector params = new Vector ();
Vector result = (Vector) xmlrpc.execute (MethodName, params);
for (int i=0; i < result.size(); i++) {
System.out.println (result.elementAt(i));
}
} catch (Exception e) {
System.err.println (e.toString());
}
}
}
Die Methode printVinstance bekommt keine Paramter übergeben und gibt ein String Array zurück. Wenn ich das Programm ausführe erhalte ich die Fehlermeldung
"java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis2/services/ReadMetaData?wsdl"
was anscheinend darauf hindeutet das die URL nicht gefunden wird.
Der Aufruf von "http://localhost:8080/axis2/services/ReadMetaData" hat leider auch nichts gebracht. Mit einem Stub-Client funktionierts einwandfrei. Weiß jemand Rat?
Gruß
Mario
habe folgenden Client geschrieben:
import java.util.Vector;
import org.apache.xmlrpc.XmlRpcClient;
public class XMLRPCTestClient {
public static void main (String args[]) {
try {
String MethodName = "printVinstance";
XmlRpcClient xmlrpc = new XmlRpcClient
("http://localhost:8080/axis2/services/ReadMetaData?wsdl");
Vector params = new Vector ();
Vector result = (Vector) xmlrpc.execute (MethodName, params);
for (int i=0; i < result.size(); i++) {
System.out.println (result.elementAt(i));
}
} catch (Exception e) {
System.err.println (e.toString());
}
}
}
Die Methode printVinstance bekommt keine Paramter übergeben und gibt ein String Array zurück. Wenn ich das Programm ausführe erhalte ich die Fehlermeldung
"java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis2/services/ReadMetaData?wsdl"
was anscheinend darauf hindeutet das die URL nicht gefunden wird.
Der Aufruf von "http://localhost:8080/axis2/services/ReadMetaData" hat leider auch nichts gebracht. Mit einem Stub-Client funktionierts einwandfrei. Weiß jemand Rat?
Gruß
Mario
Comment