JAX-WS: Hello World!!
Jul 29, 10 by Juan Lebrijo about weblogic, Web Services, blog, Eclipse
Today we are going to see ho to create a WS which says Hello over Weblogic, with its IDE Eclipse OEPE. We will create a New project > Web Service Project:
995.thumbnail.gif 6.09 KB
We created teh following class:
package services;import javax.jws.*;
@WebService
public class Hello {
@WebMethod
    public String sayHello(String name) {
        return "Hello, "+name+".";
    }
}
With these annotations we can serve the WS, and with right button on the classes and Run as > Run on Server. It launches the test WS application in the navigator:
1000.thumbnail.gif 4.97 KB
To access to WSDL: http://localhost:7001/wsc/HelloService?WSDL To test every WSDL published: http://localhost:7001/wls_utc/begin.do