Hi my code is this but i get a ClassnotFoundException. I generated those classes using wscompile tool in JWSDP1.5. It didn't create a class called hello.HelloWorldServiceLocator. but it asks for that class during running the client. I have placed the client class and the error bellow
import javax.xml.rpc.*;
import hello.HelloWorldService;
import hello.HelloIF;
public class JAXRpcExample {
public static void main(String as[]) {
try{
ServiceFactory fact = ServiceFactory.newInstance();
HelloWorldService serv =(HelloWorldService) fact.loadService(HelloWorldService.class);
HelloIF stub = serv.getHelloIFPort();
stub.sayHelloBack("veshnu");
} catch(Exception e) {
System.out.println(e);
}
}
}
G:\javap\web service\generated>java JAXRpcExample
javax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: hello.HelloWorldServiceLocator
import javax.xml.rpc.*;
import hello.HelloWorldService;
import hello.HelloIF;
public class JAXRpcExample {
public static void main(String as[]) {
try{
ServiceFactory fact = ServiceFactory.newInstance();
HelloWorldService serv =(HelloWorldService) fact.loadService(HelloWorldService.class);
HelloIF stub = serv.getHelloIFPort();
stub.sayHelloBack("veshnu");
} catch(Exception e) {
System.out.println(e);
}
}
}
G:\javap\web service\generated>java JAXRpcExample
javax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: hello.HelloWorldServiceLocator