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


■ I N T R O D U C I N G  W I N D O W S   C O M M U N I C AT I O N   F O U N D AT I O N 880



Download 21,46 Mb.
Pdf ko'rish
bet1689/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1685   1686   1687   1688   1689   1690   1691   1692   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

I N T R O D U C I N G  W I N D O W S   C O M M U N I C AT I O N   F O U N D AT I O N



880

8849CH25.qxd  10/16/07  10:51 AM  Page 880




Figure 25-5. System.Runtime.Serialization defines a number of attributes used when building WCF

data contracts.

Understanding WCF Bindings

Once a contract (or a set of contracts) has been defined and implemented within your service

library, the next logical step is to build a hosting agent for the WCF service itself. As mentioned, you

have a variety of possible hosts to choose from, all of which must specify the 



bindings used by

remote callers to gain access to the service type’s functionality.

Choosing a set of bindings is one area that makes WCF development quite different from .NET

remoting and/or XML web service development in that WCF ships with a number of binding

choices, each of which is tailored to a specific need. If none of the out-of-the-box bindings fits the

bill, it is possible to create your own by extending the CustomBinding type (something we will not do

in this chapter). Simply put, a WCF binding can specify the following characteristics:

• The contracts implemented by the service

• The transport layer used to move data (HTTP, MSMQ, named pipes, TCP) 

• The channels used by the transport (one-way, request-reply, duplex)

• The encoding mechanism used to deal with the data itself (XML, binary, etc.)

• Any supported web service protocols (if permitted by the binding) such as WS-Security, WS-

Transactions, WS-Reliability, and so on

Let’s take a look at our choices.

HTTP-Based Bindings

The BasicHttpBinding, WSHttpBinding, WSDualHttpBinding, and WSFederationHttpBinding options

are geared toward exposing contract types via XML web service protocols. Clearly, if you require the

furthest reach possible for your service (multiple operating systems and multiple programming

architectures), these are the bindings to focus on, because all of these binding types encode data

based on XML representation and use HTTP on the wire. 

C H A P T E R   2 5  


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1685   1686   1687   1688   1689   1690   1691   1692   ...   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