This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy



Download 21,46 Mb.
Pdf ko'rish
bet1667/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1663   1664   1665   1666   1667   1668   1669   1670   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition



Note

Previous editions of this text included an entire chapter devoted to the topic of the .NET remoting APIs.

With the release of WCF, however, I have decided not to include this chapter in this edition. The chapter on .NET

remoting APIs (titled “The .NET Remoting Layer”) can be obtained free of charge from the Apress website

(

http://www.apress.com



) by those who have purchased this text.

The Role of XML Web Services

Each of the previous distributed APIs provided little (if any) support to allow external callers to

access the supplied functionality in an 

agnostic manner. When you need to expose the services of

remote objects to 



any operating system and any programming model, XML web services provide

the most straightforward way of doing so. 

Unlike a traditional browser-based web application, a web service is simply a way to expose the

functionality of remote components via standard web protocols. Since the initial release of .NET,

programmers have been provided with superior support for building and consuming XML web

services via the System.Web.Services namespace. In fact, in many cases, building a feature-com-

plete web service is no more complicated than applying the [WebMethod] attribute to each public

method you wish to provide access to. Furthermore, Visual Studio 2008 allows you to connect to a

remote web service with the click of a button (or two). 

Web services allow developers to build .NET assemblies containing types that can be accessed

via simple HTTP. Furthermore, a web service encodes its data as simple XML. Given the fact that

web services are based on open industry standards (HTTP, XML, SOAP, etc.) rather than proprietary

type systems and proprietary wire formats (as is the case with DCOM or .NET remoting), they allow

for a high degree of interoperability and data exchange. Figure 25-1 illustrates the agnostic nature of

XML web services.

Of course, no distributed API is perfect. One potential drawback of web services is the fact that

they can suffer from some performance issues (given the use of HTTP and XML data representa-

tion), and they may not be an ideal solution for in-house applications where a TCP-based protocol

and binary formatting of data could be used without penalty. 

A .NET Web Service Example

For many years now, .NET programmers have created web services using the ASP.NET Web Service

project template of Visual Studio, which can be accessed using the File ➤ New ➤ Web Site dialog

box. This particular project template creates a commonly used directory structure and a handful of

initial files to represent the web service itself. While this project template is very helpful to get you

up and running, you are able to build a .NET XML web service using a simple text editor and test it

immediately using the ASP.NET development web server, WebDev.WebServer.exe (Chapter 31 exam-

ines this utility in more detail).

C H A P T E R   2 5  




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1663   1664   1665   1666   1667   1668   1669   1670   ...   1830




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2025
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish