1
Email- nabil299Gmail Com
2
(ASPNET)
3
nabil299Gmailcom
4
Web Service
Web Service
Web Service
NET
Web Service
Web Service
Web Service
Web Service
NET
ASPNet
(Interface
Interface
Request
Http
Protocol
XML
XML
IIS
Windows
2000
5
Http
Web ServiceFunction
Get int id)Get(1
HttpIIS
IISHttp
HttpIIS
SessionApplication
Service Web
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 Web-
related standards
Web Service
Network
WDSL
SOAP Message
HTTP
XML
HTTP
6
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
httpwwww3orgTRws-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 ASPNET we still can
use these functions but they are richer and more powerful so let s
dive into it
7
Mainly there are two different ways to manage web page s state
Client-side and Server-side
Stateless
Http
IIS
IIS
AspNet IIS
Session
Application
Http
URLWeb
Service
Web Application
Web Service
-
Web Service
NET
Web Service
result=(input-32) 59
New Project
C
VBnet
J -
ASPnet Web Service
local host
httplocalhostConvertWebService
Web Config
ASPnet
Globalasax
Service1asmx Service1
8
Web Service
ConvertWS
NET
Web Service
TextBox
VBnet
ltWebmethod(Description= gt
Function Convert(ByVal degree As Decimal) As Decimal
result=(degree-32) 59
Return result
End Function
IIS
Internet Explorer
httplocalhostConvertWebServiceConvertSWasmxConvertSWasmx
Web Service
NET
Web Service
ltWebService()gt
Webmethod
Description
Webmethod
BufferRespons
Buffering
True
False
9
CacheDuration
Cach
EnableSession
Session
MSDN uslibrarybyxd99hx(VS80)aspxvbtskusingwebmethodattributedescription-httpmsdn2microsoftcomen
Web Service
Web Service
Service
Web Service
ConvertSW
Project
Add Web Refernce
ConvertSWasmx
Viusal Studio
VBnet
Dim conv As New LocalHostConvertSW()
Syntex
LocalHostConvertSW conv=new LocalHostConvertSW()
TextBox1
Label1
Conv
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
2
(ASPNET)
3
nabil299Gmailcom
4
Web Service
Web Service
Web Service
NET
Web Service
Web Service
Web Service
Web Service
NET
ASPNet
(Interface
Interface
Request
Http
Protocol
XML
XML
IIS
Windows
2000
5
Http
Web ServiceFunction
Get int id)Get(1
HttpIIS
IISHttp
HttpIIS
SessionApplication
Service Web
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 Web-
related standards
Web Service
Network
WDSL
SOAP Message
HTTP
XML
HTTP
6
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
httpwwww3orgTRws-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 ASPNET we still can
use these functions but they are richer and more powerful so let s
dive into it
7
Mainly there are two different ways to manage web page s state
Client-side and Server-side
Stateless
Http
IIS
IIS
AspNet IIS
Session
Application
Http
URLWeb
Service
Web Application
Web Service
-
Web Service
NET
Web Service
result=(input-32) 59
New Project
C
VBnet
J -
ASPnet Web Service
local host
httplocalhostConvertWebService
Web Config
ASPnet
Globalasax
Service1asmx Service1
8
Web Service
ConvertWS
NET
Web Service
TextBox
VBnet
ltWebmethod(Description= gt
Function Convert(ByVal degree As Decimal) As Decimal
result=(degree-32) 59
Return result
End Function
IIS
Internet Explorer
httplocalhostConvertWebServiceConvertSWasmxConvertSWasmx
Web Service
NET
Web Service
ltWebService()gt
Webmethod
Description
Webmethod
BufferRespons
Buffering
True
False
9
CacheDuration
Cach
EnableSession
Session
MSDN uslibrarybyxd99hx(VS80)aspxvbtskusingwebmethodattributedescription-httpmsdn2microsoftcomen
Web Service
Web Service
Service
Web Service
ConvertSW
Project
Add Web Refernce
ConvertSWasmx
Viusal Studio
VBnet
Dim conv As New LocalHostConvertSW()
Syntex
LocalHostConvertSW conv=new LocalHostConvertSW()
TextBox1
Label1
Conv
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
3
nabil299Gmailcom
4
Web Service
Web Service
Web Service
NET
Web Service
Web Service
Web Service
Web Service
NET
ASPNet
(Interface
Interface
Request
Http
Protocol
XML
XML
IIS
Windows
2000
5
Http
Web ServiceFunction
Get int id)Get(1
HttpIIS
IISHttp
HttpIIS
SessionApplication
Service Web
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 Web-
related standards
Web Service
Network
WDSL
SOAP Message
HTTP
XML
HTTP
6
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
httpwwww3orgTRws-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 ASPNET we still can
use these functions but they are richer and more powerful so let s
dive into it
7
Mainly there are two different ways to manage web page s state
Client-side and Server-side
Stateless
Http
IIS
IIS
AspNet IIS
Session
Application
Http
URLWeb
Service
Web Application
Web Service
-
Web Service
NET
Web Service
result=(input-32) 59
New Project
C
VBnet
J -
ASPnet Web Service
local host
httplocalhostConvertWebService
Web Config
ASPnet
Globalasax
Service1asmx Service1
8
Web Service
ConvertWS
NET
Web Service
TextBox
VBnet
ltWebmethod(Description= gt
Function Convert(ByVal degree As Decimal) As Decimal
result=(degree-32) 59
Return result
End Function
IIS
Internet Explorer
httplocalhostConvertWebServiceConvertSWasmxConvertSWasmx
Web Service
NET
Web Service
ltWebService()gt
Webmethod
Description
Webmethod
BufferRespons
Buffering
True
False
9
CacheDuration
Cach
EnableSession
Session
MSDN uslibrarybyxd99hx(VS80)aspxvbtskusingwebmethodattributedescription-httpmsdn2microsoftcomen
Web Service
Web Service
Service
Web Service
ConvertSW
Project
Add Web Refernce
ConvertSWasmx
Viusal Studio
VBnet
Dim conv As New LocalHostConvertSW()
Syntex
LocalHostConvertSW conv=new LocalHostConvertSW()
TextBox1
Label1
Conv
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
4
Web Service
Web Service
Web Service
NET
Web Service
Web Service
Web Service
Web Service
NET
ASPNet
(Interface
Interface
Request
Http
Protocol
XML
XML
IIS
Windows
2000
5
Http
Web ServiceFunction
Get int id)Get(1
HttpIIS
IISHttp
HttpIIS
SessionApplication
Service Web
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 Web-
related standards
Web Service
Network
WDSL
SOAP Message
HTTP
XML
HTTP
6
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
httpwwww3orgTRws-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 ASPNET we still can
use these functions but they are richer and more powerful so let s
dive into it
7
Mainly there are two different ways to manage web page s state
Client-side and Server-side
Stateless
Http
IIS
IIS
AspNet IIS
Session
Application
Http
URLWeb
Service
Web Application
Web Service
-
Web Service
NET
Web Service
result=(input-32) 59
New Project
C
VBnet
J -
ASPnet Web Service
local host
httplocalhostConvertWebService
Web Config
ASPnet
Globalasax
Service1asmx Service1
8
Web Service
ConvertWS
NET
Web Service
TextBox
VBnet
ltWebmethod(Description= gt
Function Convert(ByVal degree As Decimal) As Decimal
result=(degree-32) 59
Return result
End Function
IIS
Internet Explorer
httplocalhostConvertWebServiceConvertSWasmxConvertSWasmx
Web Service
NET
Web Service
ltWebService()gt
Webmethod
Description
Webmethod
BufferRespons
Buffering
True
False
9
CacheDuration
Cach
EnableSession
Session
MSDN uslibrarybyxd99hx(VS80)aspxvbtskusingwebmethodattributedescription-httpmsdn2microsoftcomen
Web Service
Web Service
Service
Web Service
ConvertSW
Project
Add Web Refernce
ConvertSWasmx
Viusal Studio
VBnet
Dim conv As New LocalHostConvertSW()
Syntex
LocalHostConvertSW conv=new LocalHostConvertSW()
TextBox1
Label1
Conv
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
5
Http
Web ServiceFunction
Get int id)Get(1
HttpIIS
IISHttp
HttpIIS
SessionApplication
Service Web
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 Web-
related standards
Web Service
Network
WDSL
SOAP Message
HTTP
XML
HTTP
6
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
httpwwww3orgTRws-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 ASPNET we still can
use these functions but they are richer and more powerful so let s
dive into it
7
Mainly there are two different ways to manage web page s state
Client-side and Server-side
Stateless
Http
IIS
IIS
AspNet IIS
Session
Application
Http
URLWeb
Service
Web Application
Web Service
-
Web Service
NET
Web Service
result=(input-32) 59
New Project
C
VBnet
J -
ASPnet Web Service
local host
httplocalhostConvertWebService
Web Config
ASPnet
Globalasax
Service1asmx Service1
8
Web Service
ConvertWS
NET
Web Service
TextBox
VBnet
ltWebmethod(Description= gt
Function Convert(ByVal degree As Decimal) As Decimal
result=(degree-32) 59
Return result
End Function
IIS
Internet Explorer
httplocalhostConvertWebServiceConvertSWasmxConvertSWasmx
Web Service
NET
Web Service
ltWebService()gt
Webmethod
Description
Webmethod
BufferRespons
Buffering
True
False
9
CacheDuration
Cach
EnableSession
Session
MSDN uslibrarybyxd99hx(VS80)aspxvbtskusingwebmethodattributedescription-httpmsdn2microsoftcomen
Web Service
Web Service
Service
Web Service
ConvertSW
Project
Add Web Refernce
ConvertSWasmx
Viusal Studio
VBnet
Dim conv As New LocalHostConvertSW()
Syntex
LocalHostConvertSW conv=new LocalHostConvertSW()
TextBox1
Label1
Conv
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
6
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
httpwwww3orgTRws-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 ASPNET we still can
use these functions but they are richer and more powerful so let s
dive into it
7
Mainly there are two different ways to manage web page s state
Client-side and Server-side
Stateless
Http
IIS
IIS
AspNet IIS
Session
Application
Http
URLWeb
Service
Web Application
Web Service
-
Web Service
NET
Web Service
result=(input-32) 59
New Project
C
VBnet
J -
ASPnet Web Service
local host
httplocalhostConvertWebService
Web Config
ASPnet
Globalasax
Service1asmx Service1
8
Web Service
ConvertWS
NET
Web Service
TextBox
VBnet
ltWebmethod(Description= gt
Function Convert(ByVal degree As Decimal) As Decimal
result=(degree-32) 59
Return result
End Function
IIS
Internet Explorer
httplocalhostConvertWebServiceConvertSWasmxConvertSWasmx
Web Service
NET
Web Service
ltWebService()gt
Webmethod
Description
Webmethod
BufferRespons
Buffering
True
False
9
CacheDuration
Cach
EnableSession
Session
MSDN uslibrarybyxd99hx(VS80)aspxvbtskusingwebmethodattributedescription-httpmsdn2microsoftcomen
Web Service
Web Service
Service
Web Service
ConvertSW
Project
Add Web Refernce
ConvertSWasmx
Viusal Studio
VBnet
Dim conv As New LocalHostConvertSW()
Syntex
LocalHostConvertSW conv=new LocalHostConvertSW()
TextBox1
Label1
Conv
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
7
Mainly there are two different ways to manage web page s state
Client-side and Server-side
Stateless
Http
IIS
IIS
AspNet IIS
Session
Application
Http
URLWeb
Service
Web Application
Web Service
-
Web Service
NET
Web Service
result=(input-32) 59
New Project
C
VBnet
J -
ASPnet Web Service
local host
httplocalhostConvertWebService
Web Config
ASPnet
Globalasax
Service1asmx Service1
8
Web Service
ConvertWS
NET
Web Service
TextBox
VBnet
ltWebmethod(Description= gt
Function Convert(ByVal degree As Decimal) As Decimal
result=(degree-32) 59
Return result
End Function
IIS
Internet Explorer
httplocalhostConvertWebServiceConvertSWasmxConvertSWasmx
Web Service
NET
Web Service
ltWebService()gt
Webmethod
Description
Webmethod
BufferRespons
Buffering
True
False
9
CacheDuration
Cach
EnableSession
Session
MSDN uslibrarybyxd99hx(VS80)aspxvbtskusingwebmethodattributedescription-httpmsdn2microsoftcomen
Web Service
Web Service
Service
Web Service
ConvertSW
Project
Add Web Refernce
ConvertSWasmx
Viusal Studio
VBnet
Dim conv As New LocalHostConvertSW()
Syntex
LocalHostConvertSW conv=new LocalHostConvertSW()
TextBox1
Label1
Conv
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
8
Web Service
ConvertWS
NET
Web Service
TextBox
VBnet
ltWebmethod(Description= gt
Function Convert(ByVal degree As Decimal) As Decimal
result=(degree-32) 59
Return result
End Function
IIS
Internet Explorer
httplocalhostConvertWebServiceConvertSWasmxConvertSWasmx
Web Service
NET
Web Service
ltWebService()gt
Webmethod
Description
Webmethod
BufferRespons
Buffering
True
False
9
CacheDuration
Cach
EnableSession
Session
MSDN uslibrarybyxd99hx(VS80)aspxvbtskusingwebmethodattributedescription-httpmsdn2microsoftcomen
Web Service
Web Service
Service
Web Service
ConvertSW
Project
Add Web Refernce
ConvertSWasmx
Viusal Studio
VBnet
Dim conv As New LocalHostConvertSW()
Syntex
LocalHostConvertSW conv=new LocalHostConvertSW()
TextBox1
Label1
Conv
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
9
CacheDuration
Cach
EnableSession
Session
MSDN uslibrarybyxd99hx(VS80)aspxvbtskusingwebmethodattributedescription-httpmsdn2microsoftcomen
Web Service
Web Service
Service
Web Service
ConvertSW
Project
Add Web Refernce
ConvertSWasmx
Viusal Studio
VBnet
Dim conv As New LocalHostConvertSW()
Syntex
LocalHostConvertSW conv=new LocalHostConvertSW()
TextBox1
Label1
Conv
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
10
Label1Text = ConverttoString(convConvert(textBox1text))
VBnet
ConverttoString
VBnet
String
Update
Update Web Reference
Web Service
Web Service
XML
HTTP
Web Service
Web Service
Web Service
httpwwwwebservicexnetWCF
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
11
httpwwwwebservicexnetValidateEmailasmx
IsValidEmail
True
False
Web Refernce
MessageBox
netwebservicexwwwValidateEmail x = new
WindowsApplication1netwebservicexwwwValidateEmail()
bool r = xIsValidEmail(textBox1Text)
if (r)
MessageBoxShow(
)
else
MessageBoxShow(
)
httpwwwwebservicexnetglobalweatherasmx
GetCitiesByCountry
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
12
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetCitiesByCountry(Egypt))
TextBox
GetWeather
netwebservicexwww1GlobalWeather m = new
WindowsApplication1netwebservicexwww1GlobalWeather()
MessageBoxShow(mGetWeather(Asyut Egypt))
Combobox
XML
XML
XML
XML
( Syntex)
RSS
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
13
RSS
Really Simple Syndication
httpwwwbbccomthttpwwwalarabiyane
Feed Reader or News Aggregator software
Google Reader
XML
Feed Reader or News Aggregator software
ltrss version=20gt ltchannelgt lttitlegtFCI-hlttitlegt ltlinkgthttpwwwFci-hblogspotcomltlinkgt ltdescriptiongt Fci-h delivers every weeks technical posts
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
14
ltdescriptiongt ltitemgt lttitlegt yyyyyyyyyyyyyyyyyy lttitlegt ltlinkgt httpwwwxxxxxxxxxxxxxxhtm ltlinkgt ltitemgt ltitemgt lttitlegt Yyyyyyyyyyyyyy1 lttitlegt ltlinkgt httpxxxxxxxxxxxx1htm ltlinkgt ltitemgt ltchannelgt ltrssgt
Rss
ToolsgtgtOptions
Feeds
Subscribe to the feed useing Live Bookmarks
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
15
bookmarksgtgtbookmarks Toolbar Folder
16
ISPN
-
16
ISPN
-