I wroten a Echo WebService:

////////////////////////////////////////
package xpto;

public class Echo
{
    public String echoMethod(String arg)
    {
        return arg;
    }
}
////////////////////////////////////////

and I did a WSDL2Java to create the stubs.

I invoke this way the stub:
////////////////////////////////////////
    public String Test(String str){
       
        EchoServiceLocator service = new EchoServiceLocator();
       
        try{
           
            Echo port = service.getEcho();
           
            return port.echoMethod(str);
           
        }catch (Exception e)
        {
            System.err.println(e.getMessage());
            return null;
        }
    }
////////////////////////////////////////

And I got an CastClassException...

Anybody... please, help me! :(


---
Bruno Vg

Reply via email to