Subscribe For Free Updates!

We'll not spam mate! We promise.

Apr 29, 2012

How to make Asp .NET web Service Soap service

Views:

http://sharepointmagazine.net/wp-content/uploads/2008/11/image16.png
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:
  1. On the Visual Studio 2010 file menu, choose New Project.
  2.  From drop down list .NET Framework choose .NET Framework 2.0 or 3.5 or 3.0
    Picture 1. How to create Web Service in ASP.NET
    Picture 1. How to create Web Service in ASP.NET

  3. From menu Recent Templates choose -> Visual C#->Web.


Picture 2. How to create Web Service in ASP.NET
Picture 2. How to create Web Service in ASP.NET

  • 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.


Picture 3. How to create Web Service in ASP.NET
Picture 3. How to create Web Service in ASP.NET

Visual Studio .NET creates a project that contains  a .asmx file and code-behind class that provides required functionality.


Picture 4. How to create Web Service in ASP.NET
Picture 4. How to create Web Service in ASP.NET

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






Plese Feel Free to Socializer This Post
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment

Become a Fan

visual studio learn