I am pretty new in web services. I created a simple SOAP web service with JAX-WS (RPC style) by following this tutorial and I want to publish my endpoint on WebSphere. I know where my app is:
[AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/belediye-liberty/
and I assigned my publish url like:
import javax.xml.ws.Endpoint;
import com.ibm.cloudoe.services.HelloImp;
//Endpoint publisher
public class HelloPub{
public static void main(String[] args) {
Endpoint.publish("http://localhost:9080/belediye-liberty/ws/hello", new HelloImp());
}
}
But I cannot access wsdl and getting an error like:
[WARNING ] SRVE8093W: The servlet class name is null for the servlet named [javax.ws.rs.core.Application] so the request cannot be handled.
[WARNING ] SRVE0190E: File not found: /ws/hello
I guess I am assigning url in a wrong way. How should I do this? Thanks for help.