For the jsp client I use this code:
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.util.*"  errorPage="" %>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>info_mach</title>
</head>
<body bgcolor="#00FF00">
<% String host = request.getParameter("host0");
        String user = request.getParameter("user0");
        String pass = request.getParameter("pass0");
        String com="ps -ef";%>

        Queti sono i dati passati <%= host %> <%= user %> <%= pass %>
<%              PerformWSServiceLocator l=new PerformWSServiceLocator();
                 PerformWServiceSoapBindingStub stub
=(PerformWServiceSoapBindingStub) l.getPerformWService();
                  StringTokenizer st=new 
StringTokenizer(stub.outputStr(host,user,pass,com));
                while(st.hasMoreTokens())
                { %>
                        <%= st.nextToken() %>
 <%}%>
</body>
</html>

but when I invoke the page, tomcat says that :

An error occurred at line: 18 in the jsp file: /PerformWeb/info_mach.jsp
Generated servlet error:
/opt/jakarta-tomcat-5.0.28/work/Catalina/localhost/_/org/apache/jsp/PerformWeb/info_005fmach_jsp.java:68:
cannot find symbol
symbol  : class PerformWSServiceLocator
location: class org.apache.jsp.PerformWeb.info_005fmach_jsp
                PerformWSServiceLocator l=new PerformWSServiceLocator();
                ^


An error occurred at line: 18 in the jsp file: /PerformWeb/info_mach.jsp
Generated servlet error:
/opt/jakarta-tomcat-5.0.28/work/Catalina/localhost/_/org/apache/jsp/PerformWeb/info_005fmach_jsp.java:68:
cannot find symbol
symbol  : class PerformWSServiceLocator
location: class org.apache.jsp.PerformWeb.info_005fmach_jsp
                PerformWSServiceLocator l=new PerformWSServiceLocator();
                                              ^


An error occurred at line: 18 in the jsp file: /PerformWeb/info_mach.jsp
Generated servlet error:
/opt/jakarta-tomcat-5.0.28/work/Catalina/localhost/_/org/apache/jsp/PerformWeb/info_005fmach_jsp.java:69:
cannot find symbol
symbol  : class PerformWServiceSoapBindingStub
location: class org.apache.jsp.PerformWeb.info_005fmach_jsp
                 PerformWServiceSoapBindingStub stub
=(PerformWServiceSoapBindingStub) l.getPerformWService();
                 ^


An error occurred at line: 18 in the jsp file: /PerformWeb/info_mach.jsp
Generated servlet error:
/opt/jakarta-tomcat-5.0.28/work/Catalina/localhost/_/org/apache/jsp/PerformWeb/info_005fmach_jsp.java:69:
cannot find symbol
symbol  : class PerformWServiceSoapBindingStub
location: class org.apache.jsp.PerformWeb.info_005fmach_jsp
                 PerformWServiceSoapBindingStub stub
=(PerformWServiceSoapBindingStub) l.getPerformWService();
                                                       ^
4 errors

Can you help me???

Thanks a lot
Raffo



2005/11/3, Jyotishman Pathak <[EMAIL PROTECTED]>:
> My guess would be importing the required stubs in your JSP code, using the
> stub classes inside your JSP code, and setting the classpath appropriately.
>
>  Another way could be to use Java beans+JSP combination for invoking the
> service. Off course, that depends on what kind of application you are
> building.
>
>  HTH,
>  - Jyoti
>
>
>
> On 11/3/05, Raffaele Viola <[EMAIL PROTECTED]> wrote:
> > How can I call web service by a jsp page using the java classes created by
> Axis
> >
> > Thanks Raffo
> >
>
>

Reply via email to