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



Download 21,46 Mb.
Pdf ko'rish
bet1713/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1709   1710   1711   1712   1713   1714   1715   1716   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

Enabling Metadata Exchange 

Recall that WCF client applications communicate with the WCF service via an intervening proxy

type. While you could most certainly author the proxy code completely by hand, doing so would

be tedious and error-prone. Ideally, a tool could be used to generate the necessary grunge code

(including the client-side *.config file). Thankfully, the .NET Framework 3.5 SDK provides a com-

mand-line tool (svcutil.exe) for this very purpose. As well, Visual Studio 2008 provides similar

functionality via the Project ➤ Add Service Reference menu option. 

However, in order for these tools to generate the necessary proxy code/*.config file, they must

be able to discover the format of the WCF service interfaces and any defined data contracts (the

method names, type of parameters, etc.).

Metadata exchange (MEX) is a WCF 

service behavior that can be specified to fine-tune how the

WCF runtime handles your service. Simply put, each  element can define a set of activi-

ties a given service can subscribe to. WCF provides numerous behaviors out of the box, and it is

possible to build your own. 

The MEX behavior (which is disabled by default) will intercept any metadata requests sent via

HTTP GET. If you want to allow svcutil.exe or Visual Studio 2008 to automate the creation of the

required client-side proxy *.config file, you must enable MEX.

Enabling MEX is a matter of tweaking the host’s *.config file with the proper settings (or

authoring the corresponding C# code). First, you must add a new  just for MEX. Second,

you need to define a WCF behavior to allow HTTP GET access. Third, you need to associate this

behavior by name to your service via the behaviorConfiguration attribute on the opening 

element. Finally, you need to add a  element to define the base address of this service (MEX

will look here to figure out the locations of the types to describe). 


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1709   1710   1711   1712   1713   1714   1715   1716   ...   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