web service create asp net :
1. Solution Right Click --- > Add New Item --- > Web Service
(webservice.asmx)
2. Create a File App_Code --- >
(Webservices.cs)
3.Create a File Webservices Page asmx --- >
(Webservices.asmx)
4.Webservices.cs Page :[WebMethod]
5.[WebMethod].New [WebMethod] are Create in ADD
[WebMethod] //WebMethod New Create
int Sum;
public int Add(int a,int b)
{
Sum = a+b;
return Sum;
}
Run The Webservices Page :
URL:(http://localhost:1234/Sample/SampleWebservices.asmx)
Add Click --- >
ANS:
No comments:
Post a Comment