You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by zh...@iapcm.ac.cn on 2005/04/28 15:24:19 UTC
reply:help with a ClassCastException
Modified code:
public String Test(String str){
try{
EchoServiceLocator service = new EchoServiceLocator();
Echo port = service.getEcho();
return (String)port.echoMethod(str); <========= You can change here!
}catch (Exception e)
{
System.err.println(e.getMessage());
logger.error("Could not connect to Web Service!",e);
return null;
}
}