how to call web method in java application?.
Posted
by
user12344
on Programmers
See other posts from Programmers
or by user12344
Published on 2011-01-04T11:20:17Z
Indexed on
2011/01/04
11:57 UTC
Read the original article
Hit count: 234
netbeans
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; } }
© Programmers or respective owner