C#.NET Programming
Sunday 31 March 2013
Web Service Demo
Sample webservice and
website created using C#.net platform. Then Webservice is referenced in
website by adding its web reference.
Steps to Create Sample
WebService :
1.
Open
Visual Studio IDE.
2.
On
the File menu, click New and then click Project.
Under Project types click Visual C# Projects, then
click ASP.NET Web Service under Templates. Type WebServiceDemo in
the Location text box to change the default name (WebService1)
to WebServiceDemo .
3.
you can
rename the name of the default Web service that is created from Service1.asmx
to WebServiceDemo .asmx.
4.
Click Click
here to switch to code view in the designer environment to switch to
code view.
5.
Define
methods that encapsulate the functionality of your service. Each method that
will be exposed from the service must be flagged with a WebMethod attribute
in front of it. Without this attribute, the method will not be exposed from the
service.
Download Sample Source Code
From Below Link :
WebServiceDemo.rar
Subscribe to:
Posts (Atom)