I have a
jsp like this: But when i try to run it it gives an exception!
exception
javax.servlet.ServletException: class samples.client.DynamicInvoker : java.lang.InstantiationException: samples.client.DynamicInvoker
Heres the JSP
<html>
<head>
<title>
UDDI Browser
</title>
</head>
<jsp:useBean id="kishId" scope="session" class="samples.client.DynamicInvoker" />
<jsp:setProperty name="kishId" property="*" />
<%@ page language="java" %>
<%@ page import="samples.client.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.lang.*" %>
<body bgcolor="DDDDDD">
<h2>Invoking the version service</h2>
<%
String operationName = "getVersion";
String[] args = {"http://localhost:8080/axis/services/Version?wsdl","getVersion"};
String portName = null;
DynamicInvoker invoker = new DynamicInvoker("http://localhost:8080/axis/services/Version?wsdl");
HashMap map = invoker.invokeMethod(operationName, portName, args);
// print result
System.out.println("Result:");
for (Iterator it = map.keySet().iterator(); it.hasNext()
{
String name = (String) it.next();
%>
<h3><%=name %> : <%= map.get(name) %></h3>
<%
System.out.println(name + "=" + map.get(name));
}
System.out.println("\nDone!");
%>
<hr>
</form>
</body>
</html>
can somebody give me a solution for this?