users@jax-rpc.java.net

starting from a wsdl problem

From: Aurelio Cedillo <acedillos_at_NETSCAPE.NET>
Date: Mon, 20 May 2002 20:05:34 -0600

Hi, I'm trying to run a client using the classes that generate the xrpcc tool starting from a wsdl file

my client goes like this:

package acuerdoscjf;

public class AcuerdosClient{


public static void main (String args[]){
     try{
         String res ="";
         String url = "";
         url = "http://dgi-acs:8080/jaxrpc-acuerdos/acuerdoscjf/acuerdosIF";
         AcuerdosIFPort_Stub stub = getStub(url);
         System.out.println("Uno");
         res = stub.getAcuerdos("","2002","","","");
         System.out.println(res);
     }catch(Exception ex){
        ex.printStackTrace();}
}


private static AcuerdosIFPort_Stub getStub(String endpoint) {

        AcuerdosIFPort_Stub stub = null;
        try {
            stub =
                (AcuerdosIFPort_Stub)(new AcuerdosImpl().getAcuerdosIFPort());
            stub._setTargetEndpoint(endpoint);
            //stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,endpoint);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return stub;

    } // getStub


}


then I compile :
>ant compile-client

then I run it and the command line sends this error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/rpc/client/StubBase

I'm missing this class? and where do i have to put it?