How to call web method in application?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PriyaPavithra
    New Member
    • Dec 2010
    • 2

    How to call web method in application?

    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.WebMe thod;
    import javax.jws.WebPa ram;
    import javax.jws.WebSe rvice;

    @WebService()
    public class MyService {

    @WebMethod(oper ationName = "setName")
    public String setName(@WebPar am(name = "name")
    String name) {

    return "my string is "+ name;
    }
    }
Working...