By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,706 Members | 2,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,706 IT Pros & Developers. It's quick & easy.

How to call web method in application?

P: 2
Hi,
I have created java web application.
I want to call the setName() method in java application.
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;
}
}
Jan 4 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.