Interview Questions → .NET WEB SERVICE → .Net WebService Questionnaire I

.Net WebService Questionnaire I





[WebService(Namespace = "http://tempuri.org/")]

[WebServiceBinding(ConformsTo = WsiProfiles.None)]

[ToolboxItem(false)]

public class Service1 : System.Web.Services.WebService
{ 
    [WebMethod]
    public string HelloWorld()
    {
        return "Hello World";
    }
    [WebMethod(MessageName = "Another Method with HelloWorld()")]
    public string HelloWorld(string str)
    {
        return "this is " + str;
    }
} 
































Posted By  -  Karan Gupta


Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250