Given the code what is true:
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService
public interface TestWS
{
@WebMethod
public String testHello();
}
import javax.jws.WebService;
@WebService(endpointInterface="TestWs")
public class TestWSImpl implements TestWS
{
public String testHello()
{
return "Hello";
}
}
import javax.xml.ws.Endpoint;
public class TestWSPublisher
{
public static void main(String args[]) throws Exception
{
Endpoint.publish("http://127.0.0.1:9977/testWS", new TestWSImpl());
}
}