Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

Email:- nabil299@Gmail .

Com

(ASP.NET)

nabil299@Gmail.com

: Web Service : Web Service NET . Web Service Web Service . Web Service . Web Service NET Web Service ASP.Net (Interface Http Request XML . Interface Protocol

. XML

Windows

IIS 2000

Http

. Function Get(1 Web Service Get int id)

IIS Http

Http IIS IIS Application Session Http

: Web Service A Web service is a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described in a machine-processable format (specifically WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP messages, typically conveyed using HTTP with an XML serialization in conjunction with other Webrelated standards : Web Service WDSL HTTP Network SOAP Message XML . HTTP

In order for message transport mechanisms to function, it is normally necessary to provide information that allows messages to be delivered. This is called the address of the message receiver. Typically, the form of the address information will depend of the particular message transport. In the case of an HTTP message transport, the address information will take the form of a URL. The precise method that a message sender uses to convey address information will also depend on the transport mechanism used. On occasion, the address information may be provided as additional arguments to the invoking procedure. Or the address information may be located within the message itself; typically in the message envelope.

Addressing

Addressing . HTTP URL http://www.w3.org/TR/ws-arch

Web form pages are HTTP-Based, they are stateless, which means they don t know whether the requests are all from the same client, and pages are destroyed and recreated with each round trip to the server, therefore information will be lost, therefore state management is really an issue in developing web applications We could easily solve these problems in ASP with cookie, query string, application, session and so on. Now in ASP.NET, we still can use these functions, but they are richer and more powerful, so let s dive into it.

Mainly there are two different ways to manage web page s state: Client-side and Server-side.

Http

Stateless IIS IIS

IIS

Asp.Net Application Session Http ... Web URL Service Web Application Web Service

. .NET . Web Service : result=(input-32) * 5/9 C# New Project ASP.net Web Service : J# VB.net local host http://localhost/ConvertWebService Web Config Global.asax Service1 ASP.net Service1.asmx Web Service

Web Service : .NET . TextBox : <Webmethod(Description:=" VB.net "> Web Service ConvertWS

Function Convert(ByVal degree As Decimal) As Decimal result=(degree-32) * 5/9 Return result End Function . : IIS Internet Explorer

http://localhost/ConvertWebService/ConvertSW.asmx/ConvertSW.asmx

Web Service

NET

Web Service

<WebService()>

: Webmethod Description

Webmethod BufferRespons Buffering True False

CacheDuration Cach EnableSession Session MSDN :


http://msdn2.microsoft.com/en-us/library/byxd99hx(VS.80).aspx#vbtskusingwebmethodattributedescription

Web Service . Web Service

Service

Web Service ConvertSW . Add Web Refernce Project ConvertSW.asmx Viusal Studio . VB.net Dim conv As New LocalHost.ConvertSW() Syntex : LocalHost.ConvertSW conv=new LocalHost.ConvertSW() Label1 TextBox1

Conv

Label1.Text = Convert.toString(conv.Convert(textBox1.text)) VB.net String VB.net . Convert.toString

Update Update Web Reference

. XML

Web Service Web Service HTTP Web Service Web Service .

Web Service : http://www.webservicex.net/WCF/

10

: http://www.webservicex.net/ValidateEmail.asmx

: False . True Web Refernce IsValidEmail

MessageBox

: net.webservicex.www.ValidateEmail x = new WindowsApplication1.net.webservicex.www.ValidateEmail(); bool r = x.IsValidEmail(textBox1.Text); if (r) MessageBox.Show(" else MessageBox.Show(" "); ");

: http://www.webservicex.net/globalweather.asmx

GetCitiesByCountry

11

net.webservicex.www1.GlobalWeather m = new WindowsApplication1.net.webservicex.www1.GlobalWeather(); MessageBox.Show(m.GetCitiesByCountry("Egypt")); TextBox ... : GetWeather

net.webservicex.www1.GlobalWeather m = new WindowsApplication1.net.webservicex.www1.GlobalWeather(); MessageBox.Show(m.GetWeather("Asyut", "Egypt"));

. XML

Combobox

XML .

XML ( Syntex) . .

XML

. RSS

12

RSS Really Simple Syndication. .

http://www.alarabiya.net. http://www.bbc.com/ .

Feed Reader or News Aggregator software . " Google Reader . ".

Feed Reader or News

XML Aggregator software . .

<rss version="2.0"> <channel> <title>FCI-h</title> <link>http://www.Fci-h.blogspot.com</link> <description> Fci-h delivers every weeks technical posts .

13

</description> <item> <title> yyyyyyyyyyyyyyyyyy </title> <link> http://www.xxxxxxxxxxxxxx.htm </link> </item> <item> <title> Yyyyyyyyyyyyyy1 </title> <link> http://xxxxxxxxxxxx1.htm </link> </item> </channel> </rss>

Rss . .

Tools>>Options Feeds Subscribe to the feed useing Live Bookmarks

14

bookmarks>>bookmarks Toolbar Folder

15

ISPN .

. :

16

You might also like