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



Download 21,46 Mb.
Pdf ko'rish
bet1737/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1733   1734   1735   1736   1737   1738   1739   1740   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition



Note

This example assumes you are somewhat comfortable with the structure of an IIS virtual directory (and

IIS itself). If this is not the case, Chapter 31 will examine the details.

Using the Web-Centric WCF Service Project Template

Using the File ➤ New ➤ Web Site menu option, create a new WCF service named AutoLotWCFService,

exposed from the following URI: http://localhost/AutoLotWCFService (see Figure 25-20). Be sure

the Location drop-down list has HTTP as the active selection. 



Figure 25-20.

Creating a web-centric WCF service

Once you have done so, set a reference to the AutoLotDAL.dll assembly you created in 

Chapter 22 (via the Website ➤ Add Reference menu option). Much like a WCF Service Library proj-

ect, you have been given some example starter code (located under the App_Code folder), which

you will obviously want to delete. To begin, rename the initial IService.cs file to IAutoLotService.

cs, and define the initial service contract within your newly named file:

[ServiceContract]

public interface IAutoLotService

{

[OperationContract]



void InsertCar(int id, string make, string color, string petname);

[OperationContract]

void InsertCar(InventoryRecord car);

[OperationContract]

InventoryRecord[] GetInventory();

}

C H A P T E R   2 5  




Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1733   1734   1735   1736   1737   1738   1739   1740   ...   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