Web services very use full technology .It Mostly used in Coors plate form work .By using web service we can perform most of remote work. for example if we have web sites web1 and web2 and we want to share it data ten most selling Product of web 2 to web 1 then would we could do for this we make a web service on web 2 and though service URL we can access data and all method .We can also use web service on smart phone and Windows Phone7 ,android and iPhone etc .
So , let Start make First Web Service .
we use Visual Studio 2010 for making web service
To create the new Web Service:
Visual Studio .NET creates a project that contains a .asmx file and code-behind class that provides required functionality.
So here by default one method is already created with name helloworld and you can create more method as you can but remember always put this line on each and every method that to want to call through web service.
[WebMethod]
Video on web service
So , let Start make First Web Service .
we use Visual Studio 2010 for making web service
To create the new Web Service:
- On the Visual Studio 2010 file menu, choose New Project.
- From drop down list .NET Framework choose .NET Framework 2.0 or 3.5 or 3.0
- From menu Recent Templates choose -> Visual C#->Web.
- Go to on the right pane and click on ASP.NET Web Service Application.
- Enter the name of the web service in the Name text box and click OK.
[WebMethod]
Video on web service
0 comments:
Post a Comment