using System; using System.Web.Services; using System.Xml.Serialization; [WebService(Namespace=" public class FirstService : WebService { [WebMethod] public int Add(int a, int b) return a + b; } public String SayHello() return "Hello World"; }"> using System; using System.Web.Services; using System.Xml.Serialization; [WebService(Namespace=" public class FirstService : WebService { [WebMethod] public int Add(int a, int b) return a + b; } public String SayHello() return "Hello World"; }">

Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating,Publishing,Testing and Describing a Web Service

Similar presentations


Presentation on theme: "Creating,Publishing,Testing and Describing a Web Service"— Presentation transcript:

1 Creating,Publishing,Testing and Describing a Web Service
Publishing a web service Making a web service available to receive client requests Consuming a Web Service using a web service from a client application has two parts 1. object of a proxy class for interacting with web service 2. client application that consumes web service by invoking methods on the object of proxy class Service Provider or Publisher This is the provider of the web service. The service provider implements the service and makes it available on the Internet or intranet.

2 Service Requestor or Consumer
This is any consumer of the web service. The requestor utilizes an existing web service by opening a network connection and sending an XML request. WebService language = "C#" class = "FirstService" %> using System; using System.Web.Services; using System.Xml.Serialization; [WebService(Namespace=" public class FirstService : WebService { [WebMethod] public int Add(int a, int b) return a + b; } public String SayHello() return "Hello World"; }


Download ppt "Creating,Publishing,Testing and Describing a Web Service"

Similar presentations


Ads by Google