A very simple web service created with Eclipse IDE/Java
package com.weathercheck;
public class WebServer {
public static void main(String[] args) {
System.out.println("Webservice running.");
WebConnection conn = new WebConnection();
System.out.println(conn.Connected("Server "));
}
}
package com.weathercheck;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService
public class WebConnection {
@WebMethod
public String Connected(String message)
{ return message + "connected.";}
}
No comments:
Post a Comment