how to call web method in java application?.
- by user12344
Hi,
I have created java web application(Web Service).
I want to call the setName() method in java application(GUI).
how is call web method in application?.
package sv;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
@WebService()
public class MyService {
@WebMethod(operationName = "setName")
public String setName(@WebParam(name = "name")
String name) {
return "my string is "+ name;
}
}